diff options
-rw-r--r-- | data/sound/moan.wav | bin | 278430 -> 281350 bytes | |||
-rw-r--r-- | src/audio.c | 2 |
2 files changed, 1 insertions, 1 deletions
diff --git a/data/sound/moan.wav b/data/sound/moan.wav Binary files differindex ad97de2..c2d2cc8 100644 --- a/data/sound/moan.wav +++ b/data/sound/moan.wav 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); |