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
b914b985
Commit
b914b985
authored
May 30, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove constant { true } aout_instance_t.mixer_allocation
parent
ac201136
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
4 additions
and
14 deletions
+4
-14
include/vlc_aout.h
include/vlc_aout.h
+0
-7
include/vlc_aout_mixer.h
include/vlc_aout_mixer.h
+1
-1
modules/audio_mixer/spdif.c
modules/audio_mixer/spdif.c
+1
-1
src/audio_output/mixer.c
src/audio_output/mixer.c
+2
-2
src/audio_output/output.c
src/audio_output/output.c
+0
-3
No files found.
include/vlc_aout.h
View file @
b914b985
...
...
@@ -134,12 +134,6 @@ typedef int32_t vlc_fixed_t;
/* Max input rate factor (1/4 -> 4) */
#define AOUT_MAX_INPUT_RATE (4)
/** allocation of memory in the audio output */
typedef
struct
aout_alloc_t
{
bool
b_alloc
;
}
aout_alloc_t
;
/** audio output buffer FIFO */
struct
aout_fifo_t
{
...
...
@@ -206,7 +200,6 @@ struct aout_instance_t
/* Mixer */
audio_sample_format_t
mixer_format
;
aout_alloc_t
mixer_allocation
;
float
mixer_multiplier
;
struct
aout_mixer_t
*
p_mixer
;
...
...
include/vlc_aout_mixer.h
View file @
b914b985
...
...
@@ -76,7 +76,7 @@ struct aout_mixer_t {
*
* You can override it in the open function only.
*/
aout_alloc_t
allocation
;
bool
b_alloc
;
/* Multiplier used to raise or lower the volume of the sound in
* software.
...
...
modules/audio_mixer/spdif.c
View file @
b914b985
...
...
@@ -69,7 +69,7 @@ static int Create( vlc_object_t *p_this )
p_mixer
->
mix
=
DoWork
;
/* This is a bit kludgy - do not ask for a new buffer, since the one
* provided by the first input will be good enough. */
p_mixer
->
allocation
.
b_alloc
=
false
;
p_mixer
->
b_alloc
=
false
;
return
0
;
}
...
...
src/audio_output/mixer.c
View file @
b914b985
...
...
@@ -51,7 +51,7 @@ int aout_MixerNew( aout_instance_t * p_aout )
return
VLC_EGENERIC
;
p_mixer
->
fmt
=
p_aout
->
mixer_format
;
p_mixer
->
allocation
=
p_aout
->
mixer_allocation
;
p_mixer
->
b_alloc
=
true
;
p_mixer
->
multiplier
=
p_aout
->
mixer_multiplier
;
p_mixer
->
input
=
&
p_aout
->
pp_inputs
[
0
]
->
mixer
;
p_mixer
->
mix
=
NULL
;
...
...
@@ -323,7 +323,7 @@ static int MixBuffer( aout_instance_t * p_aout )
/* Run the mixer. */
aout_buffer_t
*
p_outbuf
;
if
(
p_aout
->
p_mixer
->
allocation
.
b_alloc
)
if
(
p_aout
->
p_mixer
->
b_alloc
)
{
p_outbuf
=
block_Alloc
(
p_aout
->
output
.
i_nb_samples
*
p_aout
->
p_mixer
->
fmt
.
i_bytes_per_frame
...
...
src/audio_output/output.c
View file @
b914b985
...
...
@@ -196,9 +196,6 @@ int aout_OutputNew( aout_instance_t * p_aout,
p_aout
->
output
.
p_module
=
NULL
;
return
-
1
;
}
/* Prepare hints for the buffer allocator. */
p_aout
->
mixer_allocation
.
b_alloc
=
true
;
return
0
;
}
...
...
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