Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
a2fc9256
Commit
a2fc9256
authored
May 30, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove write-only aout_alloc.i_bytes_per_sec
parent
01e4e9dc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
40 deletions
+0
-40
include/vlc_aout.h
include/vlc_aout.h
+0
-1
src/audio_output/aout_internal.h
src/audio_output/aout_internal.h
+0
-1
src/audio_output/filters.c
src/audio_output/filters.c
+0
-30
src/audio_output/output.c
src/audio_output/output.c
+0
-8
No files found.
include/vlc_aout.h
View file @
a2fc9256
...
...
@@ -138,7 +138,6 @@ typedef int32_t vlc_fixed_t;
typedef
struct
aout_alloc_t
{
bool
b_alloc
;
int
i_bytes_per_sec
;
}
aout_alloc_t
;
/** audio output buffer FIFO */
...
...
src/audio_output/aout_internal.h
View file @
a2fc9256
...
...
@@ -106,7 +106,6 @@ bool aout_InputIsEmpty( aout_instance_t * p_aout, aout_input_t * p_input );
int
aout_FiltersCreatePipeline
(
aout_instance_t
*
p_aout
,
filter_t
**
pp_filters
,
int
*
pi_nb_filters
,
const
audio_sample_format_t
*
p_input_format
,
const
audio_sample_format_t
*
p_output_format
);
void
aout_FiltersDestroyPipeline
(
aout_instance_t
*
p_aout
,
filter_t
**
pp_filters
,
int
i_nb_filters
);
void
aout_FiltersPlay
(
filter_t
**
pp_filters
,
unsigned
i_nb_filters
,
aout_buffer_t
**
pp_input_buffer
);
void
aout_FiltersHintBuffers
(
aout_instance_t
*
p_aout
,
filter_t
**
pp_filters
,
int
i_nb_filters
,
aout_alloc_t
*
p_first_alloc
);
/* From mixer.c : */
int
aout_MixerNew
(
aout_instance_t
*
p_aout
);
...
...
src/audio_output/filters.c
View file @
a2fc9256
...
...
@@ -293,36 +293,6 @@ void aout_FiltersDestroyPipeline( aout_instance_t * p_aout,
}
}
/*****************************************************************************
* aout_FiltersHintBuffers: fill in aout_alloc_t structures to optimize
* buffer allocations
*****************************************************************************/
void
aout_FiltersHintBuffers
(
aout_instance_t
*
p_aout
,
filter_t
**
pp_filters
,
int
i_nb_filters
,
aout_alloc_t
*
p_first_alloc
)
{
int
i
;
(
void
)
p_aout
;
/* unused */
for
(
i
=
i_nb_filters
-
1
;
i
>=
0
;
i
--
)
{
filter_t
*
p_filter
=
pp_filters
[
i
];
int
i_output_size
=
p_filter
->
fmt_out
.
audio
.
i_bytes_per_frame
*
p_filter
->
fmt_out
.
audio
.
i_rate
*
AOUT_MAX_INPUT_RATE
/
p_filter
->
fmt_out
.
audio
.
i_frame_length
;
int
i_input_size
=
p_filter
->
fmt_in
.
audio
.
i_bytes_per_frame
*
p_filter
->
fmt_in
.
audio
.
i_rate
*
AOUT_MAX_INPUT_RATE
/
p_filter
->
fmt_in
.
audio
.
i_frame_length
;
if
(
i_output_size
>
p_first_alloc
->
i_bytes_per_sec
)
p_first_alloc
->
i_bytes_per_sec
=
i_output_size
;
if
(
i_input_size
>
p_first_alloc
->
i_bytes_per_sec
)
p_first_alloc
->
i_bytes_per_sec
=
i_input_size
;
}
}
/*****************************************************************************
* aout_FiltersPlay: play a buffer
*****************************************************************************/
...
...
src/audio_output/output.c
View file @
a2fc9256
...
...
@@ -199,14 +199,6 @@ int aout_OutputNew( aout_instance_t * p_aout,
/* Prepare hints for the buffer allocator. */
p_aout
->
mixer_allocation
.
b_alloc
=
true
;
p_aout
->
mixer_allocation
.
i_bytes_per_sec
=
p_aout
->
mixer_format
.
i_bytes_per_frame
*
p_aout
->
mixer_format
.
i_rate
/
p_aout
->
mixer_format
.
i_frame_length
;
aout_FiltersHintBuffers
(
p_aout
,
p_aout
->
output
.
pp_filters
,
p_aout
->
output
.
i_nb_filters
,
&
p_aout
->
mixer_allocation
);
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