Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
0716a916
Commit
0716a916
authored
Nov 01, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playlist: add playlist_GetAout()
Contrary to input_GetAout(), this works even without input thread.
parent
d16ea40a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
7 deletions
+10
-7
include/vlc_playlist.h
include/vlc_playlist.h
+2
-0
src/libvlccore.sym
src/libvlccore.sym
+1
-0
src/playlist/aout.c
src/playlist/aout.c
+7
-7
No files found.
include/vlc_playlist.h
View file @
0716a916
...
...
@@ -368,6 +368,8 @@ VLC_API playlist_item_t * playlist_GetPrevLeaf( playlist_t *p_playlist, playlist
* Audio output management
**************************/
VLC_API
audio_output_t
*
playlist_GetAout
(
playlist_t
*
);
#define AOUT_VOLUME_DEFAULT 256
#define AOUT_VOLUME_MAX 512
...
...
src/libvlccore.sym
View file @
0716a916
...
...
@@ -350,6 +350,7 @@ playlist_Status
playlist_TreeMove
playlist_TreeMoveMany
playlist_Unlock
playlist_GetAout
playlist_EnableAudioFilter
playlist_VolumeGet
playlist_VolumeSet
...
...
src/playlist/aout.c
View file @
0716a916
...
...
@@ -31,7 +31,7 @@
#include "../audio_output/aout_internal.h"
#include "playlist_internal.h"
static
inline
audio_output_t
*
find
Aout
(
playlist_t
*
pl
)
audio_output_t
*
playlist_Get
Aout
(
playlist_t
*
pl
)
{
/* NOTE: it is assumed that the input resource exists. In practice,
* the playlist must have been activated. This is automatic when calling * pl_Get(). FIXME: input resources are deleted at deactivation, this can
...
...
@@ -44,7 +44,7 @@ float playlist_VolumeGet (playlist_t *pl)
{
float
volume
=
-
1
.
f
;
audio_output_t
*
aout
=
find
Aout
(
pl
);
audio_output_t
*
aout
=
playlist_Get
Aout
(
pl
);
if
(
aout
!=
NULL
)
{
volume
=
aout_VolumeGet
(
aout
);
...
...
@@ -57,7 +57,7 @@ int playlist_VolumeSet (playlist_t *pl, float vol)
{
int
ret
=
-
1
;
audio_output_t
*
aout
=
find
Aout
(
pl
);
audio_output_t
*
aout
=
playlist_Get
Aout
(
pl
);
if
(
aout
!=
NULL
)
{
ret
=
aout_VolumeSet
(
aout
,
vol
);
...
...
@@ -77,7 +77,7 @@ int playlist_VolumeUp (playlist_t *pl, int value, float *volp)
value
*=
var_InheritInteger
(
pl
,
"volume-step"
);
audio_output_t
*
aout
=
find
Aout
(
pl
);
audio_output_t
*
aout
=
playlist_Get
Aout
(
pl
);
if
(
aout
!=
NULL
)
{
float
vol
=
aout_VolumeGet
(
aout
);
...
...
@@ -101,7 +101,7 @@ int playlist_MuteGet (playlist_t *pl)
{
int
mute
=
-
1
;
audio_output_t
*
aout
=
find
Aout
(
pl
);
audio_output_t
*
aout
=
playlist_Get
Aout
(
pl
);
if
(
aout
!=
NULL
)
{
mute
=
aout_MuteGet
(
aout
);
...
...
@@ -114,7 +114,7 @@ int playlist_MuteSet (playlist_t *pl, bool mute)
{
int
ret
=
-
1
;
audio_output_t
*
aout
=
find
Aout
(
pl
);
audio_output_t
*
aout
=
playlist_Get
Aout
(
pl
);
if
(
aout
!=
NULL
)
{
ret
=
aout_MuteSet
(
aout
,
mute
);
...
...
@@ -127,7 +127,7 @@ int playlist_MuteSet (playlist_t *pl, bool mute)
void
playlist_EnableAudioFilter
(
playlist_t
*
pl
,
const
char
*
name
,
bool
add
)
{
audio_output_t
*
aout
=
find
Aout
(
pl
);
audio_output_t
*
aout
=
playlist_Get
Aout
(
pl
);
if
(
aout_ChangeFilterString
(
VLC_OBJECT
(
pl
),
VLC_OBJECT
(
aout
),
"audio-filter"
,
name
,
add
))
...
...
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