dhewm3/neo
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
..
cm Disable Assertions in Release builds 2018-11-11 23:21:23 +01:00
d3xp Fix most (according to warnings) remaining 64bit issues in tool code 2021-05-08 05:43:52 +02:00
framework Force SDL to minimize the window when focus is lost, fix #360 2021-06-20 03:59:30 +02:00
game Fix most (according to warnings) remaining 64bit issues in tool code 2021-05-08 05:43:52 +02:00
idlib Don't use stringDataAllocator in idStr, it's not thread-safe 2021-06-24 03:26:51 +02:00
MayaImport s/LittleLong/LittleInt/ to match the return type 2012-06-28 13:02:47 +02:00
renderer Do gamma correction (r_gamma, r_brightness) in shaders 2021-06-20 03:36:39 +02:00
sound Make sure sampleTime used in sound updates is multiple of 8 2021-06-24 06:45:24 +02:00
sys Don't use stringDataAllocator in idStr, it's not thread-safe 2021-06-24 03:26:51 +02:00
tools Make MFC Tools work with MSAA enabled 2021-05-11 00:39:00 +02:00
TypeInfo Get rid of Sys_FPU_StackIsEmpty() 2012-07-06 01:06:53 +02:00
ui Make rvGEWindowWrapper (for GUI editor) 64bit clean 2021-05-08 07:03:55 +02:00
CMakeLists.txt GCC/Clang: Remove -fno-unsafe-math-optimizations 2021-06-20 03:36:39 +02:00
config.h.in Introduce CMAKE_INSTALL_PREFIX relative paths 2012-07-04 02:18:42 +02:00
mmakefile.src # move the AROS specific folder icon and default.cfg mmakefile.src under neo/sys/aros/setup 2017-04-22 16:21:14 +02:00