diff options
| author | Sonic Dreamcaster <alejandro.asenjo88@gmail.com> | 2025-05-14 00:47:09 -0300 |
|---|---|---|
| committer | Sonic Dreamcaster <alejandro.asenjo88@gmail.com> | 2025-05-14 00:47:09 -0300 |
| commit | 93ce49e48e513ef008965e202b0dc172b5962f4f (patch) | |
| tree | 36f81bae69a3465b9c01185ba2070e6283dc50c5 | |
| parent | 79f939a818c14c362d81e79cc8913784a8b9d4f3 (diff) | |
CODEC_S16 fix from 2ship
| -rw-r--r-- | src/audio/audio_synthesis.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio/audio_synthesis.c b/src/audio/audio_synthesis.c index 1558adfc..84d894c5 100644 --- a/src/audio/audio_synthesis.c +++ b/src/audio/audio_synthesis.c @@ -1070,7 +1070,7 @@ Acmd* AudioSynth_ProcessNote(s32 noteIndex, NoteSubEu* noteSub, NoteSynthesisSta dmemUncompressedAddrOffset1 = numSamplesToLoadAdj; if (((synthState->samplePosInt * 2) + (numSamplesToLoadAdj)*SAMPLE_SIZE) < bookSample->size) { - bytesToRead = (numSamplesToLoadAdj)*SAMPLE_SIZE; + bytesToRead = (numSamplesToLoadAdj + 16)*SAMPLE_SIZE; } else { bytesToRead = bookSample->size - (synthState->samplePosInt * 2); } |
