mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-06-01 17:12:15 +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)
|
if (sample_start != -1)
|
||||||
samples = sample_count;
|
samples = sample_start + sample_count;
|
||||||
size = samples * vi->channels * 2;
|
size = samples * vi->channels * 2;
|
||||||
if (developer->int_val) {
|
if (developer->int_val) {
|
||||||
Sys_Printf ("\nBitstream is %d channel, %ldHz\n",
|
Sys_Printf ("\nBitstream is %d channel, %ldHz\n",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue