mirror of
https://github.com/mpv-player/mpv
synced 2025-01-30 11:42:04 +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,
|
.uninit = uninit,
|
||||||
.init = init,
|
.init = init,
|
||||||
.control = control,
|
.control = control,
|
||||||
.pause = stop,
|
.reset = stop,
|
||||||
.resume = start,
|
.resume = start,
|
||||||
.hotplug_init = hotplug_init,
|
.hotplug_init = hotplug_init,
|
||||||
.hotplug_uninit = hotplug_uninit,
|
.hotplug_uninit = hotplug_uninit,
|
||||||
|
@ -399,7 +399,7 @@ const struct ao_driver audio_out_coreaudio_exclusive = {
|
|||||||
.name = "coreaudio_exclusive",
|
.name = "coreaudio_exclusive",
|
||||||
.uninit = uninit,
|
.uninit = uninit,
|
||||||
.init = init,
|
.init = init,
|
||||||
.pause = audio_pause,
|
.reset = audio_pause,
|
||||||
.resume = audio_resume,
|
.resume = audio_resume,
|
||||||
.list_devs = ca_get_device_list,
|
.list_devs = ca_get_device_list,
|
||||||
.priv_size = sizeof(struct priv),
|
.priv_size = sizeof(struct priv),
|
||||||
|
Loading…
Reference in New Issue
Block a user