Skip to content

Commit

Permalink
Possible fix for RSTM decoding artifact issue (issue #108)
Browse files Browse the repository at this point in the history
  • Loading branch information
libertyernie committed Mar 14, 2017
1 parent dd9c5ca commit c333e5b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions BrawlLib/Wii/Audio/ADPCMStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ public ADPCMStream(RSTMHeader* pRSTM, int channels, int startChannel, VoidPtr da
sPtr += _blockLen;
}

for (int cIndex = 0; cIndex < _numChannels; cIndex++) {
yn1 = *ynCache++;
yn2 = *ynCache++;
}

//Fill block states in a linear fashion
sPtr = (byte*)dataAddr;
for (int sIndex = 0, bIndex = 0; sIndex < _numSamples; sIndex += _samplesPerBlock, bIndex++)
Expand Down

0 comments on commit c333e5b

Please sign in to comment.