From 9a7b9b8c38ebd7fd4a4ee1936efde538a50c0c65 Mon Sep 17 00:00:00 2001 From: David Reid Date: Fri, 16 Jul 2021 19:38:30 +1000 Subject: [PATCH] API CHANGE: Remove ma_scale_buffer_size(). --- miniaudio.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/miniaudio.h b/miniaudio.h index 274ec4bf..67530fd3 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -5821,13 +5821,6 @@ Utiltities ************************************************************************************************************************************************************/ -/* -Adjust buffer size based on a scaling factor. - -This just multiplies the base size by the scaling factor, making sure it's a size of at least 1. -*/ -MA_API ma_uint32 ma_scale_buffer_size(ma_uint32 baseBufferSize, float scale); - /* Calculates a buffer size in milliseconds from the specified number of frames and sample rate. */ @@ -34276,11 +34269,6 @@ MA_API ma_uint32 ma_calculate_buffer_size_in_frames_from_descriptor(const ma_dev #endif /* MA_NO_DEVICE_IO */ -MA_API ma_uint32 ma_scale_buffer_size(ma_uint32 baseBufferSize, float scale) -{ - return ma_max(1, (ma_uint32)(baseBufferSize*scale)); -} - MA_API ma_uint32 ma_calculate_buffer_size_in_milliseconds_from_frames(ma_uint32 bufferSizeInFrames, ma_uint32 sampleRate) { /* Prevent a division by zero. */