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
7025da51
Commit
7025da51
authored
Jul 04, 2021
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
API CHANGE: Remove MA_MIN/MAX_SAMPLE_RATE.
These are replaced with ma_standard_sample_rate_min/max.
parent
77586a8a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
miniaudio.h
miniaudio.h
+0
-4
tools/audioconverter/audioconverter.c
tools/audioconverter/audioconverter.c
+2
-2
No files found.
miniaudio.h
View file @
7025da51
...
...
@@ -1909,10 +1909,6 @@ typedef enum
ma_standard_sample_rate_count = 14 /* Need to maintain the count manually. Make sure this is updated if items are added to enum. */
} ma_standard_sample_rate;
/* These are deprecated. Use ma_standard_sample_rate_min and ma_standard_sample_rate_max. */
#define MA_MIN_SAMPLE_RATE (ma_uint32)ma_standard_sample_rate_min
#define MA_MAX_SAMPLE_RATE (ma_uint32)ma_standard_sample_rate_max
typedef enum
{
tools/audioconverter/audioconverter.c
View file @
7025da51
...
...
@@ -40,7 +40,7 @@ void print_usage()
printf
(
" s32 32-bit signed integer
\n
"
);
printf
(
" f32 32-bit floating point
\n
"
);
printf
(
" [channels] is optional and in the range of %d and %d
\n
"
,
MA_MIN_CHANNELS
,
MA_MAX_CHANNELS
);
printf
(
" [rate] is optional and in the range of %d and %d
\n
"
,
MA_MIN_SAMPLE_RATE
,
MA_MAX_SAMPLE_RATE
);
printf
(
" [rate] is optional and in the range of %d and %d
\n
"
,
ma_standard_sample_rate_min
,
ma_standard_sample_rate_max
);
printf
(
"
\n
"
);
printf
(
"PARAMETERS:
\n
"
);
printf
(
" --linear-order [0..%d]
\n
"
,
MA_MAX_FILTER_ORDER
);
...
...
@@ -150,7 +150,7 @@ ma_bool32 try_parse_channels(const char* str, ma_uint32* pValue)
ma_bool32
try_parse_sample_rate
(
const
char
*
str
,
ma_uint32
*
pValue
)
{
return
try_parse_uint32_in_range
(
str
,
pValue
,
MA_MIN_SAMPLE_RATE
,
MA_MAX_SAMPLE_RATE
);
return
try_parse_uint32_in_range
(
str
,
pValue
,
ma_standard_sample_rate_min
,
ma_standard_sample_rate_max
);
}
ma_bool32
try_parse_resample_algorithm
(
const
char
*
str
,
ma_resample_algorithm
*
pValue
)
...
...
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