summaryrefslogtreecommitdiffstats
path: root/audio/out/ao.c
diff options
context:
space:
mode:
authorIlya Zhuravlev <whatever@xyz.is>2016-02-14 20:03:47 +0300
committerwm4 <wm4@nowhere>2016-02-27 00:00:36 +0100
commit72aea5a12bbc07bec0d3cc5b1ce6c2485a0355c5 (patch)
tree6e17c879e793e45fb70c3a5d08256287fd82ea28 /audio/out/ao.c
parenta6a358ce619e50ce6ca2307555a010d1c08341e0 (diff)
downloadmpv-72aea5a12bbc07bec0d3cc5b1ce6c2485a0355c5.tar.bz2
mpv-72aea5a12bbc07bec0d3cc5b1ce6c2485a0355c5.tar.xz
ao: initial OpenSL ES support
OpenSL ES is used on Android. At the moment only stereo output is supported. Two options are supported: 'frames-per-buffer' and 'sample-rate'. To get better latency the user of libmpv should pass values obtained from AudioManager.getProperty(PROPERTY_OUTPUT_FRAMES_PER_BUFFER) and AudioManager.getProperty(PROPERTY_OUTPUT_SAMPLE_RATE).
Diffstat (limited to 'audio/out/ao.c')
-rw-r--r--audio/out/ao.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/audio/out/ao.c b/audio/out/ao.c
index ffcc43ab79..9c0f644c75 100644
--- a/audio/out/ao.c
+++ b/audio/out/ao.c
@@ -43,6 +43,7 @@ extern const struct ao_driver audio_out_sndio;
extern const struct ao_driver audio_out_pulse;
extern const struct ao_driver audio_out_jack;
extern const struct ao_driver audio_out_openal;
+extern const struct ao_driver audio_out_opensles;
extern const struct ao_driver audio_out_null;
extern const struct ao_driver audio_out_alsa;
extern const struct ao_driver audio_out_wasapi;
@@ -74,6 +75,9 @@ static const struct ao_driver * const audio_out_drivers[] = {
#if HAVE_OPENAL
&audio_out_openal,
#endif
+#if HAVE_OPENSLES
+ &audio_out_opensles,
+#endif
#if HAVE_SDL1 || HAVE_SDL2
&audio_out_sdl,
#endif