API CHANGE: Remove ma_scale_buffer_size().

This commit is contained in:
David Reid
2021-07-16 19:38:30 +10:00
parent b8079f2b61
commit 9a7b9b8c38
-12
View File
@@ -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. */