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
22cc9dae
Commit
22cc9dae
authored
Sep 27, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
param_eq: constify
parent
7d6feff6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
modules/audio_filter/param_eq.c
modules/audio_filter/param_eq.c
+9
-9
No files found.
modules/audio_filter/param_eq.c
View file @
22cc9dae
...
...
@@ -43,7 +43,8 @@ static int Open ( vlc_object_t * );
static
void
Close
(
vlc_object_t
*
);
static
void
CalcPeakEQCoeffs
(
float
,
float
,
float
,
float
,
float
*
);
static
void
CalcShelfEQCoeffs
(
float
,
float
,
float
,
int
,
float
,
float
*
);
static
void
ProcessEQ
(
float
*
,
float
*
,
float
*
,
unsigned
,
unsigned
,
float
*
,
unsigned
);
static
void
ProcessEQ
(
const
float
*
,
float
*
,
float
*
,
unsigned
,
unsigned
,
const
float
*
,
unsigned
);
static
void
DoWork
(
aout_instance_t
*
,
aout_filter_t
*
,
aout_buffer_t
*
,
aout_buffer_t
*
);
...
...
@@ -305,23 +306,22 @@ static void CalcShelfEQCoeffs( float f0, float slope, float gainDB, int high,
samples is not premultiplied by channels
size of coeffs is 5*eqCount
*/
void
ProcessEQ
(
float
*
src
,
float
*
dest
,
float
*
state
,
unsigned
channels
,
unsigned
samples
,
float
*
coeffs
,
void
ProcessEQ
(
const
float
*
src
,
float
*
dest
,
float
*
state
,
unsigned
channels
,
unsigned
samples
,
const
float
*
coeffs
,
unsigned
eqCount
)
{
unsigned
i
,
chn
,
eq
;
float
b0
,
b1
,
b2
,
a1
,
a2
;
float
x
,
y
=
0
;
float
*
src1
,
*
dest1
;
float
*
coeffs1
,
*
state1
;
src1
=
src
;
dest1
=
dest
;
const
float
*
src1
=
src
;
float
*
dest1
=
dest
;
for
(
i
=
0
;
i
<
samples
;
i
++
)
{
state1
=
state
;
float
*
state1
=
state
;
for
(
chn
=
0
;
chn
<
channels
;
chn
++
)
{
coeffs1
=
coeffs
;
co
nst
float
*
co
effs1
=
coeffs
;
x
=
*
src1
++
;
/* Direct form 1 IIRs */
for
(
eq
=
0
;
eq
<
eqCount
;
eq
++
)
...
...
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