dhewm3/neo/sound
Daniel Gibson 8747ee63d3 Make sure sampleTime used in sound updates is multiple of 8
Originally sound updates only happened about every 100ms and
`sampleTime` (or `newSoundTime`) was a multiple of 4096
(`MIXBUFFER_SAMPLES`).
After I changed this to updates every 16ms and made the calculation of
`sampleTime` a lot simpler, it could be any value (as it's current
amount of milliseconds multiplied by 44.1).
It generally seemed to work, but it seems advisable to make it a
multiple of 8 (see also "Fix endless loop when decoding OGGs" commit).
So I round it to the nearest multiple of 8 now. Furthermore I increased
the accuracy when the game has been running for a long time by using
double instead of float, and tried to make sure that `sampleTime` is
always positive (or at least as long as `inTime` is positive).
2021-06-24 06:45:24 +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 Make sure sampleTime used in sound updates is multiple of 8 2021-06-24 06:45:24 +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