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
a48c23a5
Commit
a48c23a5
authored
Feb 23, 2020
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor restructuring.
parent
a263cd97
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
+9
-11
miniaudio.h
miniaudio.h
+9
-11
No files found.
miniaudio.h
View file @
a48c23a5
...
@@ -29362,9 +29362,9 @@ ma_uint32 ma_biquad_get_latency(ma_biquad* pBQ)
...
@@ -29362,9 +29362,9 @@ ma_uint32 ma_biquad_get_latency(ma_biquad* pBQ)
Low-Pass Filter
Low-Pass Filter
**************************************************************************************************************************************************************/
**************************************************************************************************************************************************************/
ma_lpf
2_config ma_lpf2
_config_init(ma_format format, ma_uint32 channels, ma_uint32 sampleRate, double cutoffFrequency)
ma_lpf
1_config ma_lpf1
_config_init(ma_format format, ma_uint32 channels, ma_uint32 sampleRate, double cutoffFrequency)
{
{
ma_lpf
1
_config config;
ma_lpf
2
_config config;
MA_ZERO_OBJECT(&config);
MA_ZERO_OBJECT(&config);
config.format = format;
config.format = format;
...
@@ -29375,9 +29375,9 @@ ma_lpf2_config ma_lpf2_config_init(ma_format format, ma_uint32 channels, ma_uint
...
@@ -29375,9 +29375,9 @@ ma_lpf2_config ma_lpf2_config_init(ma_format format, ma_uint32 channels, ma_uint
return config;
return config;
}
}
ma_lpf
1_config ma_lpf1
_config_init(ma_format format, ma_uint32 channels, ma_uint32 sampleRate, double cutoffFrequency)
ma_lpf
2_config ma_lpf2
_config_init(ma_format format, ma_uint32 channels, ma_uint32 sampleRate, double cutoffFrequency)
{
{
ma_lpf
2
_config config;
ma_lpf
1
_config config;
MA_ZERO_OBJECT(&config);
MA_ZERO_OBJECT(&config);
config.format = format;
config.format = format;
...
@@ -29649,10 +29649,6 @@ static ma_result ma_lpf_reinit__internal(const ma_lpf_config* pConfig, ma_lpf* p
...
@@ -29649,10 +29649,6 @@ static ma_result ma_lpf_reinit__internal(const ma_lpf_config* pConfig, ma_lpf* p
return MA_INVALID_ARGS;
return MA_INVALID_ARGS;
}
}
if (pConfig->poles > MA_MAX_FILTER_POLES) {
return MA_INVALID_ARGS;
}
/* Only supporting f32 and s16. */
/* 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;
...
@@ -29668,9 +29664,9 @@ static ma_result ma_lpf_reinit__internal(const ma_lpf_config* pConfig, ma_lpf* p
...
@@ -29668,9 +29664,9 @@ static ma_result ma_lpf_reinit__internal(const ma_lpf_config* pConfig, ma_lpf* p
return MA_INVALID_OPERATION;
return MA_INVALID_OPERATION;
}
}
pLPF->format = pConfig->format;
if (pConfig->poles > MA_MAX_FILTER_POLES) {
pLPF->channels = pConfig->channels
;
return MA_INVALID_ARGS
;
}
lpf2Count = pConfig->poles / 2;
lpf2Count = pConfig->poles / 2;
lpf1Count = pConfig->poles % 2;
lpf1Count = pConfig->poles % 2;
...
@@ -29715,6 +29711,8 @@ static ma_result ma_lpf_reinit__internal(const ma_lpf_config* pConfig, ma_lpf* p
...
@@ -29715,6 +29711,8 @@ static ma_result ma_lpf_reinit__internal(const ma_lpf_config* pConfig, ma_lpf* p
pLPF->lpf2Count = lpf2Count;
pLPF->lpf2Count = lpf2Count;
pLPF->lpf1Count = lpf1Count;
pLPF->lpf1Count = lpf1Count;
pLPF->format = pConfig->format;
pLPF->channels = pConfig->channels;
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