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
fe08f7fb
Commit
fe08f7fb
authored
Jul 17, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aout: prepare to add private data to the volume mixer object
parent
5bb741ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
2 deletions
+18
-2
src/audio_output/mixer.c
src/audio_output/mixer.c
+18
-2
No files found.
src/audio_output/mixer.c
View file @
fe08f7fb
/*****************************************************************************
* mixer.c : audio output
mixing
operations
* mixer.c : audio output
volume
operations
*****************************************************************************
* Copyright (C) 2002-2004 VLC authors and VideoLAN
* $Id$
...
...
@@ -38,13 +38,29 @@
#include <vlc_aout_mixer.h>
#include "aout_internal.h"
/* Note: Once upon a time, the audio output volume module was also responsible
* for mixing multiple audio inputs together. Hence it was called mixer.
* Nowadays, there is only ever a single input per module instance, so this has
* become a misnomer. */
typedef
struct
aout_volume
{
audio_mixer_t
volume
;
}
aout_volume_t
;
static
inline
aout_volume_t
*
vol_priv
(
audio_mixer_t
*
volume
)
{
return
(
aout_volume_t
*
)
volume
;
}
#undef aout_MixerNew
/**
* Creates a software amplifier.
*/
audio_mixer_t
*
aout_MixerNew
(
vlc_object_t
*
obj
,
vlc_fourcc_t
format
)
{
audio_mixer_t
*
mixer
=
vlc_custom_create
(
obj
,
sizeof
(
*
mixer
),
"mixer"
);
audio_mixer_t
*
mixer
=
vlc_custom_create
(
obj
,
sizeof
(
aout_volume_t
),
"volume"
);
if
(
unlikely
(
mixer
==
NULL
))
return
NULL
;
...
...
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