Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
adcea581
Commit
adcea581
authored
Oct 25, 2007
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
control/audio.c: Implement get_audio_track_count. (Patch by Enrique Osuna).
parent
64659b28
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
src/control/audio.c
src/control/audio.c
+18
-0
No files found.
src/control/audio.c
View file @
adcea581
...
...
@@ -114,6 +114,23 @@ void libvlc_audio_set_volume( libvlc_instance_t *p_instance, int i_volume,
}
}
/*****************************************************************************
* libvlc_audio_get_track_count : Get the number of available audio tracks
*****************************************************************************/
int
libvlc_audio_get_track_count
(
libvlc_media_instance_t
*
p_mi
,
libvlc_exception_t
*
p_e
)
{
input_thread_t
*
p_input_thread
=
libvlc_get_input_thread
(
p_mi
,
p_e
);
vlc_value_t
val_list
;
if
(
!
p_input_thread
)
return
-
1
;
var_Change
(
p_input_thread
,
"audio-es"
,
VLC_VAR_GETCHOICES
,
&
val_list
,
NULL
);
vlc_object_release
(
p_input_thread
);
return
val_list
.
p_list
->
i_count
;
}
/*****************************************************************************
* libvlc_audio_get_track : Get the current audio track
*****************************************************************************/
...
...
@@ -152,6 +169,7 @@ int libvlc_audio_get_track( libvlc_media_instance_t *p_mi,
return
i_track
;
}
/*****************************************************************************
* libvlc_audio_set_track : Set the current audio track
*****************************************************************************/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment