summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEblo <7004497+Eblo@users.noreply.github.com>2025-08-30 00:21:27 -0400
committerGitHub <noreply@github.com>2025-08-29 22:21:27 -0600
commit31f18278e15fa23a9ef2bed20d5c56999200155d (patch)
tree37cf59c5f0bee466481b1a423002b2ffd40a511d
parentc8407db38b2b21284734e3867d787359464428a9 (diff)
Revert "Fix cracking/buzzing with streamed audio (#1153)" (#1233)
This reverts commit 120c657607dc3c7b5d8e063d457744733bb5b668.
-rw-r--r--mm/src/audio/lib/synthesis.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/mm/src/audio/lib/synthesis.c b/mm/src/audio/lib/synthesis.c
index a2e4d5845..89cb0e8ba 100644
--- a/mm/src/audio/lib/synthesis.c
+++ b/mm/src/audio/lib/synthesis.c
@@ -1157,9 +1157,8 @@ Acmd* AudioSynth_ProcessSample(s32 noteIndex, NoteSampleState* sampleState, Note
numSamplesProcessed += numSamplesToLoadAdj;
dmemUncompressedAddrOffset1 = numSamplesToLoadAdj;
- if (((synthState->samplePosInt * 2) + (numSamplesToLoadAdj + 16) * SAMPLE_SIZE) <
- sample->size) {
- bytesToRead = (numSamplesToLoadAdj + 16) * SAMPLE_SIZE;
+ if (((synthState->samplePosInt * 2) + (numSamplesToLoadAdj)*SAMPLE_SIZE) < sample->size) {
+ bytesToRead = (numSamplesToLoadAdj)*SAMPLE_SIZE;
} else {
bytesToRead = sample->size - (synthState->samplePosInt * 2);
}