mirror of
https://github.com/yattee/yattee.git
synced 2025-10-13 02:48:27 +00:00
Add rate change selector
This commit is contained in:
@@ -225,6 +225,11 @@ final class MPVClient: ObservableObject {
|
||||
mpv_set_property_async(mpv, 0, name, MPV_FORMAT_FLAG, &data)
|
||||
}
|
||||
|
||||
func setDoubleAsync(_ name: String, _ value: Double) {
|
||||
var data = value
|
||||
mpv_set_property_async(mpv, 0, name, MPV_FORMAT_DOUBLE, &data)
|
||||
}
|
||||
|
||||
private func getDouble(_ name: String) -> Double {
|
||||
var data = Double()
|
||||
mpv_get_property(mpv, name, MPV_FORMAT_DOUBLE, &data)
|
||||
|
Reference in New Issue
Block a user