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
ebf818aa
Commit
ebf818aa
authored
Nov 22, 2012
by
Edward Wang
Committed by
Rafaël Carré
Dec 05, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
audiotrack: enable volume support
Signed-off-by:
Rafaël Carré
<
funman@videolan.org
>
parent
7387c6d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
modules/audio_output/audiotrack.c
modules/audio_output/audiotrack.c
+9
-1
No files found.
modules/audio_output/audiotrack.c
View file @
ebf818aa
...
...
@@ -91,6 +91,9 @@ typedef int (*AudioTrack_flush)(void *);
typedef
int
(
*
AudioTrack_pause
)(
void
*
);
struct
aout_sys_t
{
float
soft_gain
;
bool
soft_mute
;
void
*
libmedia
;
void
*
AudioTrack
;
...
...
@@ -110,6 +113,9 @@ struct aout_sys_t {
AudioTrack_pause
at_pause
;
};
/* Soft volume helper */
#include "volume.h"
static
void
*
InitLibrary
(
struct
aout_sys_t
*
p_sys
);
static
int
Open
(
vlc_object_t
*
);
...
...
@@ -265,6 +271,8 @@ static int Start(audio_output_t *aout, audio_sample_format_t *restrict fmt)
return
VLC_EGENERIC
;
}
aout_SoftVolumeStart
(
aout
);
aout
->
sys
=
p_sys
;
aout
->
time_get
=
NULL
;
aout
->
play
=
Play
;
...
...
@@ -331,7 +339,7 @@ static int Open(vlc_object_t *obj)
aout
->
sys
=
sys
;
aout
->
start
=
Start
;
aout
->
stop
=
Stop
;
//
aout_SoftVolumeInit(aout);
aout_SoftVolumeInit
(
aout
);
return
VLC_SUCCESS
;
}
...
...
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