diff options
Diffstat (limited to 'src/audio.c')
-rw-r--r-- | src/audio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio.c b/src/audio.c index d252086..9cfc384 100644 --- a/src/audio.c +++ b/src/audio.c @@ -60,7 +60,7 @@ static void audio_mix(void *data, Uint8 *stream8, int len) { stream[j] += samp * a->sounds[i].volume; } - if ( a->sounds[i].dpos == a->sounds[i].dlen ) { + if ( a->sounds[i].dpos == a->sounds[i].dlen-2 ) { if ( a->sounds[i].repeat ) { a->sounds[i].dpos = 0; if ( a->debug ) printf("AU: Channel %i: Looping at offset %i/%i\n", i, j, len); |