Remove some unused placeholder functions.

This commit is contained in:
David Reid
2026-02-16 07:30:24 +10:00
parent d6d26deeda
commit dbc955fb0d
-58
View File
@@ -52757,64 +52757,6 @@ MA_API void ma_pcm_f32_to_f32(void* dst, const void* src, ma_uint64 count, ma_di
}
static void ma_pcm_interleave_f32__reference(void* dst, const void** src, ma_uint64 frameCount, ma_uint32 channels)
{
float* dst_f32 = (float*)dst;
const float** src_f32 = (const float**)src;
ma_uint64 iFrame;
for (iFrame = 0; iFrame < frameCount; iFrame += 1) {
ma_uint32 iChannel;
for (iChannel = 0; iChannel < channels; iChannel += 1) {
dst_f32[iFrame*channels + iChannel] = src_f32[iChannel][iFrame];
}
}
}
static void ma_pcm_interleave_f32__optimized(void* dst, const void** src, ma_uint64 frameCount, ma_uint32 channels)
{
ma_pcm_interleave_f32__reference(dst, src, frameCount, channels);
}
MA_API void ma_pcm_interleave_f32(void* dst, const void** src, ma_uint64 frameCount, ma_uint32 channels)
{
#ifdef MA_USE_REFERENCE_CONVERSION_APIS
ma_pcm_interleave_f32__reference(dst, src, frameCount, channels);
#else
ma_pcm_interleave_f32__optimized(dst, src, frameCount, channels);
#endif
}
static void ma_pcm_deinterleave_f32__reference(void** dst, const void* src, ma_uint64 frameCount, ma_uint32 channels)
{
float** dst_f32 = (float**)dst;
const float* src_f32 = (const float*)src;
ma_uint64 iFrame;
for (iFrame = 0; iFrame < frameCount; iFrame += 1) {
ma_uint32 iChannel;
for (iChannel = 0; iChannel < channels; iChannel += 1) {
dst_f32[iChannel][iFrame] = src_f32[iFrame*channels + iChannel];
}
}
}
static void ma_pcm_deinterleave_f32__optimized(void** dst, const void* src, ma_uint64 frameCount, ma_uint32 channels)
{
ma_pcm_deinterleave_f32__reference(dst, src, frameCount, channels);
}
MA_API void ma_pcm_deinterleave_f32(void** dst, const void* src, ma_uint64 frameCount, ma_uint32 channels)
{
#ifdef MA_USE_REFERENCE_CONVERSION_APIS
ma_pcm_deinterleave_f32__reference(dst, src, frameCount, channels);
#else
ma_pcm_deinterleave_f32__optimized(dst, src, frameCount, channels);
#endif
}
MA_API void ma_pcm_convert(void* pOut, ma_format formatOut, const void* pIn, ma_format formatIn, ma_uint64 sampleCount, ma_dither_mode ditherMode)
{
if (formatOut == formatIn) {