Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
miniaudio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
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
MyCard
miniaudio
Commits
68b96021
Commit
68b96021
authored
Jan 28, 2020
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update old comments.
parent
b9c2509d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
research/ma_lpf.h
research/ma_lpf.h
+2
-3
No files found.
research/ma_lpf.h
View file @
68b96021
...
@@ -187,7 +187,7 @@ ma_result ma_biquad_reinit(const ma_biquad_config* pConfig, ma_biquad* pBQ)
...
@@ -187,7 +187,7 @@ ma_result ma_biquad_reinit(const ma_biquad_config* pConfig, ma_biquad* pBQ)
return
MA_INVALID_ARGS
;
/* Division by zero. */
return
MA_INVALID_ARGS
;
/* Division by zero. */
}
}
/*
Currently only supporting f32 and s16, but support for other formats will be added later
. */
/*
Only supporting f32 and s16
. */
if
(
pConfig
->
format
!=
ma_format_f32
&&
pConfig
->
format
!=
ma_format_s16
)
{
if
(
pConfig
->
format
!=
ma_format_f32
&&
pConfig
->
format
!=
ma_format_s16
)
{
return
MA_INVALID_ARGS
;
return
MA_INVALID_ARGS
;
}
}
...
@@ -265,7 +265,6 @@ ma_result ma_biquad_process_pcm_frames(ma_biquad* pBQ, void* pFramesOut, const v
...
@@ -265,7 +265,6 @@ ma_result ma_biquad_process_pcm_frames(ma_biquad* pBQ, void* pFramesOut, const v
/* Note that the logic below needs to support in-place filtering. That is, it must support the case where pFramesOut and pFramesIn are the same. */
/* Note that the logic below needs to support in-place filtering. That is, it must support the case where pFramesOut and pFramesIn are the same. */
/* Currently only supporting f32. */
if
(
pBQ
->
format
==
ma_format_f32
)
{
if
(
pBQ
->
format
==
ma_format_f32
)
{
/* */
float
*
pY
=
(
float
*
)
pFramesOut
;
/* */
float
*
pY
=
(
float
*
)
pFramesOut
;
const
float
*
pX
=
(
const
float
*
)
pFramesIn
;
const
float
*
pX
=
(
const
float
*
)
pFramesIn
;
...
@@ -286,7 +285,7 @@ ma_result ma_biquad_process_pcm_frames(ma_biquad* pBQ, void* pFramesOut, const v
...
@@ -286,7 +285,7 @@ ma_result ma_biquad_process_pcm_frames(ma_biquad* pBQ, void* pFramesOut, const v
}
}
}
else
{
}
else
{
MA_ASSERT
(
MA_FALSE
);
MA_ASSERT
(
MA_FALSE
);
return
MA_INVALID_ARGS
;
/* Format not supported. Should never hit this because it's checked in ma_biquad_init(). */
return
MA_INVALID_ARGS
;
/* Format not supported. Should never hit this because it's checked in ma_biquad_init()
and ma_biquad_reinit()
. */
}
}
return
MA_SUCCESS
;
return
MA_SUCCESS
;
...
...
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