summaryrefslogtreecommitdiffstats
path: root/DOCS
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-07-08 16:08:11 +0200
committerwm4 <wm4@nowhere>2016-07-08 16:11:03 +0200
commit885e99131259094a829c4023719ebee979aa72f3 (patch)
tree2784ce69ce0e7d722ff97745e8a908fd8494dbe1 /DOCS
parent26b6873ffdf7534f8a4fa154565a5e92a0243110 (diff)
downloadmpv-885e99131259094a829c4023719ebee979aa72f3.tar.bz2
mpv-885e99131259094a829c4023719ebee979aa72f3.tar.xz
ao_coreaudio: error out when selecting invalid device
When selecting a device that simply doesn't exist with --audio-device, AudioUnit will still initialize and start playback without complaining. But it will never call the audio render callback, which leads to audio playback simply not progressing. I couldn't find a way to get AudioUnit to report an error at all, so here's a crappy hack that takes care of this in most cases. We assume that all devices have a kAudioDevicePropertyDeviceIsAlive property. Invalid devices will error when querying the property (with 'obj!' as status code). This is not the correct fix, because we try to double-guess AudioUnit's behavior by accessing a lower label API. Suggestions welcome.
Diffstat (limited to 'DOCS')
0 files changed, 0 insertions, 0 deletions