mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
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:
parent
c1a8a02762
commit
be8df8bdaa
1 changed files with 1 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue