dhewm3/neo/sound
Daniel Gibson aedf0b4b21 Fix endless loop when decoding OGGs, #390
In idSampleDecoderLocal::DecodeOGG() `totalSamples` was 1 and
`reqSamples` was 0, which caused an endless loop.. this was caused by
idSoundWorldLocal::ReadFromSaveGame() setting
`chan->openalStreamingOffset` to an odd number, I think due to
`currentSoundTime` being an odd number.
To fix that, I round up `chan->openalStreamingOffset` to a (very) even
number, and to be double-sure I also added a check in DecodeOgg() to
make sure it exits the loop if `reqSamples` is 0.
2021-06-22 02:59:59 +02:00
..
efxlib.h Cleanup EFX code 2012-01-10 17:45:37 +01:00
snd_cache.cpp idSoundSample::Load() uses s_decompressionLimit for oggs again 2021-04-27 20:08:59 +02:00
snd_decoder.cpp Fix endless loop when decoding OGGs, #390 2021-06-22 02:59:59 +02:00
snd_efxfile.cpp Calculate EFX density as in EFX-Util 2021-01-15 17:57:17 +01:00
snd_emitter.cpp Properly pause sounds when entering menu, fixes #330 2021-04-27 20:08:59 +02:00
snd_local.h Add s_alReverbGain CVar to reduce intensity of reverb effects, fix #365 2021-04-27 20:08:59 +02:00
snd_shader.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
snd_system.cpp Add s_alReverbGain CVar to reduce intensity of reverb effects, fix #365 2021-04-27 20:08:59 +02:00
snd_wavefile.cpp Use stb_vorbis instead of libogg and libvorbis(file) 2021-04-27 20:08:59 +02:00
snd_world.cpp Fix endless loop when decoding OGGs, #390 2021-06-22 02:59:59 +02:00
sound.h Port EAX to EFX 2012-01-08 22:04:56 +01:00
stb_vorbis.h Fix stb_vorbis failing to load .ogg files without comments 2021-04-27 20:08:59 +02:00