From d7cec8ba204416a665c466bf4d0e497fcc8feb59 Mon Sep 17 00:00:00 2001 From: David Reid Date: Wed, 29 Apr 2026 15:40:44 +1000 Subject: [PATCH] Remove an unused function. --- miniaudio.h | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/miniaudio.h b/miniaudio.h index c6939510..c2971255 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -78056,23 +78056,6 @@ MA_API ma_result ma_noise_set_seed(ma_noise* pNoise, ma_int32 seed) } -MA_API ma_result ma_noise_set_type(ma_noise* pNoise, ma_noise_type type) -{ - if (pNoise == NULL) { - return MA_INVALID_ARGS; - } - - /* - This function should never have been implemented in the first place. Changing the type dynamically is not - supported. Instead you need to uninitialize and reinitialize a fresh `ma_noise` object. This function - will be removed in version 0.12. - */ - MA_ASSERT(MA_FALSE); - (void)type; - - return MA_INVALID_OPERATION; -} - static MA_INLINE float ma_noise_f32_white(ma_noise* pNoise) { return (float)(ma_lcg_rand_f64(&pNoise->lcg) * pNoise->config.amplitude);