mirror of
https://github.com/mpv-player/mpv
synced 2025-01-29 11:12:56 +00:00
ao_coreaudio: actually use stop callback
The .pause callback is never used for pull.c-based AOs. This means this always streamed silence instead of deactivating audio.
This commit is contained in:
parent
d81b5690df
commit
3759a3f40b
@ -419,7 +419,7 @@ const struct ao_driver audio_out_coreaudio = {
|
||||
.uninit = uninit,
|
||||
.init = init,
|
||||
.control = control,
|
||||
.pause = stop,
|
||||
.reset = stop,
|
||||
.resume = start,
|
||||
.hotplug_init = hotplug_init,
|
||||
.hotplug_uninit = hotplug_uninit,
|
||||
|
@ -399,7 +399,7 @@ const struct ao_driver audio_out_coreaudio_exclusive = {
|
||||
.name = "coreaudio_exclusive",
|
||||
.uninit = uninit,
|
||||
.init = init,
|
||||
.pause = audio_pause,
|
||||
.reset = audio_pause,
|
||||
.resume = audio_resume,
|
||||
.list_devs = ca_get_device_list,
|
||||
.priv_size = sizeof(struct priv),
|
||||
|
Loading…
Reference in New Issue
Block a user