mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
Resampler: Convert a double to a float.
This saves a a few bytes in `ma_linear_resampler`.
This commit is contained in:
+2
-2
@@ -5587,7 +5587,7 @@ typedef struct
|
||||
ma_uint32 sampleRateIn;
|
||||
ma_uint32 sampleRateOut;
|
||||
ma_uint32 lpfOrder; /* The low-pass filter order. Setting this to 0 will disable low-pass filtering. */
|
||||
double lpfNyquistFactor; /* 0..1. Defaults to 1. 1 = Half the sampling frequency (Nyquist Frequency), 0.5 = Quarter the sampling frequency (half Nyquest Frequency), etc. */
|
||||
float lpfNyquistFactor; /* 0..1. Defaults to 1. 1 = Half the sampling frequency (Nyquist Frequency), 0.5 = Quarter the sampling frequency (half Nyquest Frequency), etc. */
|
||||
} ma_linear_resampler_config;
|
||||
|
||||
MA_API ma_linear_resampler_config ma_linear_resampler_config_init(ma_format format, ma_uint32 channels, ma_uint32 sampleRateIn, ma_uint32 sampleRateOut);
|
||||
@@ -5599,7 +5599,7 @@ typedef struct
|
||||
ma_uint32 sampleRateIn;
|
||||
ma_uint32 sampleRateOut;
|
||||
ma_uint32 lpfOrder;
|
||||
double lpfNyquistFactor;
|
||||
float lpfNyquistFactor;
|
||||
ma_uint32 inAdvanceInt;
|
||||
ma_uint32 inAdvanceFrac;
|
||||
ma_uint32 inTimeInt;
|
||||
|
||||
Reference in New Issue
Block a user