API CHANGE: Remove MA_MIN/MAX_SAMPLE_RATE.

These are replaced with ma_standard_sample_rate_min/max.
This commit is contained in:
David Reid
2021-07-04 15:46:43 +10:00
parent 77586a8a43
commit 7025da51ab
2 changed files with 2 additions and 6 deletions
-4
View File
@@ -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
{
+2 -2
View File
@@ -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)