From be8df8bdaada435fae608f6045d0c31e901120cb Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 27 Aug 2002 19:44:13 +0000 Subject: [PATCH] fix a nasty bug with looped vorbis sound effects. samples with loop lengths smaller than their unlooped sections were causing qf to hang. --- libs/audio/renderer/vorbis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/audio/renderer/vorbis.c b/libs/audio/renderer/vorbis.c index eb1908f6e..e75112b7b 100644 --- a/libs/audio/renderer/vorbis.c +++ b/libs/audio/renderer/vorbis.c @@ -115,7 +115,7 @@ SND_LoadOgg (QFile *file, sfx_t *sfx, cache_allocator_t allocator) } } if (sample_start != -1) - samples = sample_count; + samples = sample_start + sample_count; size = samples * vi->channels * 2; if (developer->int_val) { Sys_Printf ("\nBitstream is %d channel, %ldHz\n",