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
5d0f2144
Commit
5d0f2144
authored
Jan 19, 2020
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove MA_RESAMPLER_MIN_RATIO and MA_RESAMPLER_MAX_RATIO.
parent
ad9d1e63
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
12 deletions
+5
-12
research/ma_resampler.h
research/ma_resampler.h
+5
-12
No files found.
research/ma_resampler.h
View file @
5d0f2144
...
...
@@ -236,13 +236,6 @@ Implementation
*/
#ifdef MINIAUDIO_IMPLEMENTATION
#ifndef MA_RESAMPLER_MIN_RATIO
#define MA_RESAMPLER_MIN_RATIO 0.02083333
#endif
#ifndef MA_RESAMPLER_MAX_RATIO
#define MA_RESAMPLER_MAX_RATIO 48.0
#endif
#if defined(ma_speex_resampler_h)
#define MA_HAS_SPEEX_RESAMPLER
...
...
@@ -259,7 +252,7 @@ static ma_result ma_result_from_speex_err(int err)
default:
return
MA_ERROR
;
}
}
#endif
#endif
/* ma_speex_resampler_h */
ma_resampler_config
ma_resampler_config_init
(
ma_format
format
,
ma_uint32
channels
,
ma_uint32
sampleRateIn
,
ma_uint32
sampleRateOut
,
ma_resample_algorithm
algorithm
)
{
...
...
@@ -837,13 +830,13 @@ ma_result ma_resampler_set_rate_ratio(ma_resampler* pResampler, float ratio)
ma_uint32
d
;
ma_uint32
gcf
;
if
(
ratio
<
MA_RESAMPLER_MIN_RATIO
||
ratio
>
MA_RESAMPLER_MAX_RATIO
)
{
return
MA_INVALID_ARGS
;
}
d
=
1000000
;
n
=
(
ma_uint32
)(
ratio
*
d
);
if
(
n
==
0
)
{
return
MA_INVALID_ARGS
;
/* Ratio too small. */
}
MA_ASSERT
(
n
!=
0
);
gcf
=
ma_gcf_u32
(
n
,
d
);
...
...
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