[Android] LibVLC: document setAudioOutput/setAudioOutputDevice
Thomas Guillem
git at videolan.org
Wed Mar 8 15:07:29 CET 2017
vlc-android | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Mar 8 14:52:40 2017 +0100| [5ce7a65a39f3cf3ce49629a7954b12af3fcc9351] | committer: Thomas Guillem
LibVLC: document setAudioOutput/setAudioOutputDevice
> https://code.videolan.org/videolan/vlc-android/commit/5ce7a65a39f3cf3ce49629a7954b12af3fcc9351
---
libvlc/src/org/videolan/libvlc/MediaPlayer.java | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/libvlc/src/org/videolan/libvlc/MediaPlayer.java b/libvlc/src/org/videolan/libvlc/MediaPlayer.java
index 2577a7e..ce7aa7e 100644
--- a/libvlc/src/org/videolan/libvlc/MediaPlayer.java
+++ b/libvlc/src/org/videolan/libvlc/MediaPlayer.java
@@ -689,6 +689,11 @@ public class MediaPlayer extends VLCObject<MediaPlayer.Event> {
* Any change will take effect only after playback is stopped and
* restarted. Audio output cannot be changed while playing.
*
+ * By default, the "android_audiotrack" is selected. Starting Android 21, passthrough is
+ * enabled for encodings supported by the device/audio system.
+ *
+ * Calling this method will disable the encoding detection.
+ *
* @return true on success.
*/
public boolean setAudioOutput(String aout) {
@@ -723,6 +728,16 @@ public class MediaPlayer extends VLCObject<MediaPlayer.Event> {
* Configures an explicit audio output device.
* Audio output will be moved to the device specified by the device identifier string.
*
+ * Available devices for the "android_audiotrack" module (the default) are
+ * "stereo": Up to 2 channels (compat mode).
+ * "pcm": Up to 8 channels.
+ * "encoded": Up to 8 channels, passthrough for every encodings if available.
+ * "encoded:ENCODING_FLAGS_MASK": passthrough for every encodings specified by
+ * ENCODING_FLAGS_MASK. This extra value is a long that contains binary-shifted
+ * AudioFormat.ENCODING_* values.
+ *
+ * Calling this method will disable the encoding detection (see {@link #setAudioOutput}).
+ *
* @return true on success.
*/
public boolean setAudioOutputDevice(String id) {
More information about the Android
mailing list