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
e870d083
Commit
e870d083
authored
Aug 02, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mixer only needs the sample format (FOURCC)
parent
1d038ed7
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
8 additions
and
9 deletions
+8
-9
include/vlc_aout_mixer.h
include/vlc_aout_mixer.h
+1
-1
modules/audio_mixer/fixed32.c
modules/audio_mixer/fixed32.c
+1
-1
modules/audio_mixer/float32.c
modules/audio_mixer/float32.c
+1
-1
src/audio_output/aout_internal.h
src/audio_output/aout_internal.h
+1
-1
src/audio_output/dec.c
src/audio_output/dec.c
+1
-1
src/audio_output/intf.c
src/audio_output/intf.c
+1
-1
src/audio_output/mixer.c
src/audio_output/mixer.c
+2
-3
No files found.
include/vlc_aout_mixer.h
View file @
e870d083
...
...
@@ -44,7 +44,7 @@ struct audio_mixer
VLC_COMMON_MEMBERS
module_t
*
module
;
/**< Module handle */
const
audio_sample_format_t
*
fmt
;
/**< Audio
format */
vlc_fourcc_t
format
;
/**< Audio samples
format */
void
(
*
mix
)(
audio_mixer_t
*
,
block_t
*
,
float
);
/**< Amplifier */
};
...
...
modules/audio_mixer/fixed32.c
View file @
e870d083
...
...
@@ -44,7 +44,7 @@ static int Activate (vlc_object_t *obj)
{
audio_mixer_t
*
mixer
=
(
audio_mixer_t
*
)
obj
;
switch
(
mixer
->
f
mt
->
i_f
ormat
)
switch
(
mixer
->
format
)
{
case
VLC_CODEC_FI32
:
mixer
->
mix
=
FilterFI32
;
...
...
modules/audio_mixer/float32.c
View file @
e870d083
...
...
@@ -59,7 +59,7 @@ static int Create( vlc_object_t *p_this )
{
audio_mixer_t
*
p_mixer
=
(
audio_mixer_t
*
)
p_this
;
if
(
p_mixer
->
fmt
->
i_format
!=
VLC_CODEC_FL32
)
if
(
p_mixer
->
format
!=
VLC_CODEC_FL32
)
return
-
1
;
p_mixer
->
mix
=
DoWork
;
...
...
src/audio_output/aout_internal.h
View file @
e870d083
...
...
@@ -145,7 +145,7 @@ void aout_FiltersDestroyPipeline( filter_t *const *, unsigned );
void
aout_FiltersPlay
(
filter_t
*
const
*
,
unsigned
,
aout_buffer_t
**
);
/* From mixer.c : */
struct
audio_mixer
*
aout_MixerNew
(
vlc_object_t
*
,
const
audio_sample_format_t
*
);
struct
audio_mixer
*
aout_MixerNew
(
vlc_object_t
*
,
vlc_fourcc_t
);
#define aout_MixerNew(o, f) aout_MixerNew(VLC_OBJECT(o), f)
void
aout_MixerDelete
(
struct
audio_mixer
*
);
void
aout_MixerRun
(
struct
audio_mixer
*
,
block_t
*
,
float
);
...
...
src/audio_output/dec.c
View file @
e870d083
...
...
@@ -107,7 +107,7 @@ aout_input_t *aout_DecNew( audio_output_t *p_aout,
goto
out
;
assert
(
owner
->
volume
.
mixer
==
NULL
);
owner
->
volume
.
mixer
=
aout_MixerNew
(
p_aout
,
&
owner
->
mixer
_format
);
owner
->
volume
.
mixer
=
aout_MixerNew
(
p_aout
,
owner
->
mixer_format
.
i
_format
);
if
(
owner
->
volume
.
mixer
==
NULL
)
{
aout_OutputDelete
(
p_aout
);
...
...
src/audio_output/intf.c
View file @
e870d083
...
...
@@ -271,7 +271,7 @@ static int aout_Restart( audio_output_t * p_aout )
return
-
1
;
}
owner
->
volume
.
mixer
=
aout_MixerNew
(
p_aout
,
&
owner
->
mixer
_format
);
owner
->
volume
.
mixer
=
aout_MixerNew
(
p_aout
,
owner
->
mixer_format
.
i
_format
);
if
(
owner
->
volume
.
mixer
==
NULL
)
{
aout_OutputDelete
(
p_aout
);
...
...
src/audio_output/mixer.c
View file @
e870d083
...
...
@@ -40,14 +40,13 @@
/**
* Creates a software amplifier.
*/
audio_mixer_t
*
aout_MixerNew
(
vlc_object_t
*
obj
,
const
audio_sample_format_t
*
fmt
)
audio_mixer_t
*
aout_MixerNew
(
vlc_object_t
*
obj
,
vlc_fourcc_t
format
)
{
audio_mixer_t
*
mixer
=
vlc_custom_create
(
obj
,
sizeof
(
*
mixer
),
"mixer"
);
if
(
unlikely
(
mixer
==
NULL
))
return
NULL
;
mixer
->
f
mt
=
fm
t
;
mixer
->
f
ormat
=
forma
t
;
mixer
->
mix
=
NULL
;
mixer
->
module
=
module_need
(
mixer
,
"audio mixer"
,
NULL
,
false
);
if
(
mixer
->
module
==
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