fix a nasty bug with looped vorbis sound effects. samples with loop lengths

smaller than their unlooped sections were causing qf to hang.
This commit is contained in:
Bill Currie 2002-08-27 19:44:13 +00:00
parent c1a8a02762
commit be8df8bdaa
1 changed files with 1 additions and 1 deletions

View File

@ -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",