diff options
author | Franklin Wei <git@fwei.tk> | 2018-01-05 17:25:03 -0500 |
---|---|---|
committer | Franklin Wei <git@fwei.tk> | 2018-01-15 19:45:28 -0500 |
commit | cf07bb328deb71cf2dc602f435b5340b0b55a2e5 (patch) | |
tree | e90dc67756cedabb0e857ad2f44309791a92e38b /apps/plugins/sdl/progs/duke3d/Game/src/config.c | |
parent | 69ff35ac497abddd0559412f82682d717888eb03 (diff) | |
download | rockbox-cf07bb328deb71cf2dc602f435b5340b0b55a2e5.tar.gz rockbox-cf07bb328deb71cf2dc602f435b5340b0b55a2e5.zip |
duke3d: further optimize audio mixing
Rather than holding intermediate results as fixed-point, this converts them
directly to normal integers (in the range of the PCM sample) while mixing,
instead of waiting till the end to perform a separate shifting step. Also,
this precalculates some constants in the reverb code.
Change-Id: Ie04e444d145bc28ce67eef9ae0ead6d328acf28a
Diffstat (limited to 'apps/plugins/sdl/progs/duke3d/Game/src/config.c')
-rw-r--r-- | apps/plugins/sdl/progs/duke3d/Game/src/config.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/plugins/sdl/progs/duke3d/Game/src/config.c b/apps/plugins/sdl/progs/duke3d/Game/src/config.c index 038875a4e5..1649c40b07 100644 --- a/apps/plugins/sdl/progs/duke3d/Game/src/config.c +++ b/apps/plugins/sdl/progs/duke3d/Game/src/config.c | |||
@@ -728,6 +728,7 @@ void CONFIG_ReadSetup( void ) | |||
728 | NumBits = 16; | 728 | NumBits = 16; |
729 | SCRIPT_GetNumber( scripthandle, "Sound Setup", "MixRate",&MixRate); | 729 | SCRIPT_GetNumber( scripthandle, "Sound Setup", "MixRate",&MixRate); |
730 | MixRate = RB_SAMPR; | 730 | MixRate = RB_SAMPR; |
731 | printf("MixRate = %d Hz", MixRate); | ||
731 | SCRIPT_GetNumber( scripthandle, "Sound Setup", "MidiPort",&MidiPort); | 732 | SCRIPT_GetNumber( scripthandle, "Sound Setup", "MidiPort",&MidiPort); |
732 | SCRIPT_GetNumber( scripthandle, "Sound Setup", "BlasterAddress",&dummy); | 733 | SCRIPT_GetNumber( scripthandle, "Sound Setup", "BlasterAddress",&dummy); |
733 | BlasterConfig.Address = dummy; | 734 | BlasterConfig.Address = dummy; |