1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-06 15:11:58 +00:00
mpv/audio/out
wm4 885e991312 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.
2016-07-08 16:11:03 +02:00
..
ao_alsa.c ao_alsa: add more shitty workarounds 2016-05-06 17:20:02 +02:00
ao_coreaudio_chmap.c ao_coreaudio: fix 7.1(rear) channel mapping 2016-02-04 12:29:32 +01:00
ao_coreaudio_chmap.h ao_coreaudio_chmap: change license to LGPL 2016-01-19 21:21:49 +01:00
ao_coreaudio_exclusive.c ao_coreaudio_exclusive: add missing newline to log message 2016-04-01 12:24:39 +02:00
ao_coreaudio_properties.c mpv_talloc.h: rename from talloc.h 2016-01-11 21:05:55 +01:00
ao_coreaudio_properties.h
ao_coreaudio_utils.c ao_coreaudio: error out when selecting invalid device 2016-07-08 16:11:03 +02:00
ao_coreaudio_utils.h ao_coreaudio: remove unused function 2016-04-15 14:14:42 +02:00
ao_coreaudio.c ao_coreaudio: remove detected_device 2016-04-26 18:35:37 +02:00
ao_jack.c
ao_lavc.c ao_lavc, vo_lavc: Migrate to new encoding API. 2016-06-27 08:33:12 -04:00
ao_null.c mpv_talloc.h: rename from talloc.h 2016-01-11 21:05:55 +01:00
ao_openal.c ao_openal: wipe out global context on init error 2016-01-18 20:46:22 -08:00
ao_opensles.c ao_opensles: remove 32bit audio 2016-05-22 14:31:37 +02:00
ao_oss.c ao_oss: do not add an entry to audio-device-list if device file missing 2016-06-29 17:40:04 +02:00
ao_pcm.c mpv_talloc.h: rename from talloc.h 2016-01-11 21:05:55 +01:00
ao_pulse.c ao_pulse: attempt to fall back to an arbitrary sample format 2016-01-05 19:52:05 +01:00
ao_rsound.c mpv_talloc.h: rename from talloc.h 2016-01-11 21:05:55 +01:00
ao_sdl.c Relicense some non-MPlayer source files to LGPL 2.1 or later 2016-01-19 18:36:06 +01:00
ao_sndio.c
ao_wasapi_changenotify.c Fix misspellings 2016-06-26 13:47:21 +02:00
ao_wasapi_utils.c ao_wasapi: use new af_select_best_samplerate function 2016-03-17 02:31:05 -07:00
ao_wasapi.c Fix misspellings 2016-06-26 13:47:21 +02:00
ao_wasapi.h ao_wasapi: replace laggy COM messaging with mp_dispatch_queue 2016-02-26 15:43:51 -08:00
ao.c audio: don't add default entry to audio-device-list if AO support listing 2016-06-29 17:38:57 +02:00
ao.h
internal.h
pull.c Relicense some non-MPlayer source files to LGPL 2.1 or later 2016-01-19 18:36:06 +01:00
push.c audio: apply an upper bound timeout when draining 2016-06-12 21:05:10 +02:00