Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
533
Issue boards
Milestones
Wiki
Code
Merge requests
11
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC-Android
Commits
5ce7a65a
Commit
5ce7a65a
authored
7 years ago
by
Thomas Guillem
Browse files
Options
Downloads
Patches
Plain Diff
LibVLC: document setAudioOutput/setAudioOutputDevice
parent
6a356529
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libvlc/src/org/videolan/libvlc/MediaPlayer.java
+15
-0
15 additions, 0 deletions
libvlc/src/org/videolan/libvlc/MediaPlayer.java
with
15 additions
and
0 deletions
libvlc/src/org/videolan/libvlc/MediaPlayer.java
+
15
−
0
View file @
5ce7a65a
...
...
@@ -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
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment