Commit 7025da51 authored by David Reid's avatar David Reid

API CHANGE: Remove MA_MIN/MAX_SAMPLE_RATE.

These are replaced with ma_standard_sample_rate_min/max.
parent 77586a8a
......@@ -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
{
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment