mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-21 15:56:58 +02:00
Fix an error with s24 deinterleaving.
This commit is contained in:
+3
-3
@@ -52962,9 +52962,9 @@ MA_API void ma_deinterleave_pcm_frames(ma_format format, ma_uint32 channels, ma_
|
|||||||
ma_uint32 iChannel;
|
ma_uint32 iChannel;
|
||||||
for (iChannel = 0; iChannel < channels; iChannel += 1) {
|
for (iChannel = 0; iChannel < channels; iChannel += 1) {
|
||||||
ma_uint8* pDstS24 = (ma_uint8*)ppDeinterleavedPCMFrames[iChannel];
|
ma_uint8* pDstS24 = (ma_uint8*)ppDeinterleavedPCMFrames[iChannel];
|
||||||
pDstS24[iPCMFrame + 0] = pSrcS24[(iPCMFrame*channels+iChannel)*3 + 0];
|
pDstS24[iPCMFrame*3 + 0] = pSrcS24[(iPCMFrame*channels+iChannel)*3 + 0];
|
||||||
pDstS24[iPCMFrame + 1] = pSrcS24[(iPCMFrame*channels+iChannel)*3 + 1];
|
pDstS24[iPCMFrame*3 + 1] = pSrcS24[(iPCMFrame*channels+iChannel)*3 + 1];
|
||||||
pDstS24[iPCMFrame + 2] = pSrcS24[(iPCMFrame*channels+iChannel)*3 + 2];
|
pDstS24[iPCMFrame*3 + 2] = pSrcS24[(iPCMFrame*channels+iChannel)*3 + 2];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
|
|||||||
Reference in New Issue
Block a user