diff options
author | Rudolf Polzer <divverent@xonotic.org> | 2012-12-28 08:07:14 +0100 |
---|---|---|
committer | Rudolf Polzer <divverent@xonotic.org> | 2012-12-28 08:40:28 +0100 |
commit | c3cc38e4c40d23178330e035c8befc0443a2868b (patch) | |
tree | bbcb141fb3c1e044b392297c310850aff6e63fd4 /audio/out/ao.c | |
parent | e830b004580a547c1d27f106ca493c70712ec1a6 (diff) | |
download | mpv-c3cc38e4c40d23178330e035c8befc0443a2868b.tar.bz2 mpv-c3cc38e4c40d23178330e035c8befc0443a2868b.tar.xz |
vo/ao: SDL 1.2+ audio driver, SDL 2.0+ accelerated video driver
This mainly serves as a fallback for platforms where nothing better is
available; also as a debugging help. Both the audio and video driver are
not first class - the audio driver lacks delay detection, and the video
driver only supports a single YUV color space.
Configure options: --disable-sdl2 to disable SDL 2.0+ detection,
--disable-sdl to disable SDL 1.2+ detection. Both options need to be
specified to turn off SDL support entirely.
Diffstat (limited to 'audio/out/ao.c')
-rw-r--r-- | audio/out/ao.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/audio/out/ao.c b/audio/out/ao.c index 915af93793..85e9548454 100644 --- a/audio/out/ao.c +++ b/audio/out/ao.c @@ -45,6 +45,7 @@ extern const struct ao_driver audio_out_pcm; extern const struct ao_driver audio_out_pss; extern const struct ao_driver audio_out_lavc; extern const struct ao_driver audio_out_portaudio; +extern const struct ao_driver audio_out_sdl; static const struct ao_driver * const audio_out_drivers[] = { // native: @@ -73,6 +74,9 @@ static const struct ao_driver * const audio_out_drivers[] = { #ifdef CONFIG_OPENAL &audio_out_openal, #endif +#ifdef CONFIG_SDL + &audio_out_sdl, +#endif &audio_out_null, // should not be auto-selected: &audio_out_pcm, |