From cff6c7e28a42668c3658cda545d0090aa3d3bd1f Mon Sep 17 00:00:00 2001 From: David Reid Date: Thu, 5 Feb 2026 10:18:20 +1000 Subject: [PATCH] Resampler: Convert a double to a float. This saves a a few bytes in `ma_linear_resampler`. --- miniaudio.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/miniaudio.h b/miniaudio.h index cda57c62..592af139 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -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;