DuskDsp: Fix streamed audio position tracking

This commit is contained in:
Luke Street
2026-07-16 00:10:07 -06:00
parent ec51ba298b
commit 1bae8a5e6a
+1 -4
View File
@@ -457,10 +457,7 @@ static int ReadChannelSamplesChunk(
auto aramBase = static_cast<u8*>(ARGetStorageAddress()) + channel.mWaveAramAddress;
// Streaming logic directly modifies mSamplesLeft.
// So we use that as our tracking of where we are.
auto curSamplePosition = channel.mEndSample - channel.mSamplesLeft;
auto curSamplePosition = channel.mSamplePosition;
u32 skipSamples = curSamplePosition % channel.mSamplesPerBlock;
if (skipSamples != 0) {
// We need to start reading in the middle of a block. This can happen thanks to loops.