Commit 9a7b9b8c authored by David Reid's avatar David Reid

API CHANGE: Remove ma_scale_buffer_size().

parent b8079f2b
...@@ -5821,13 +5821,6 @@ Utiltities ...@@ -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. 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 ...@@ -34276,11 +34269,6 @@ MA_API ma_uint32 ma_calculate_buffer_size_in_frames_from_descriptor(const ma_dev
#endif /* MA_NO_DEVICE_IO */ #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) MA_API ma_uint32 ma_calculate_buffer_size_in_milliseconds_from_frames(ma_uint32 bufferSizeInFrames, ma_uint32 sampleRate)
{ {
/* Prevent a division by zero. */ /* Prevent a division by zero. */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment