mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-20 08:48:13 +00:00
a1cfe235e4
Formerly the frequency was at 10000Hz. This resulted in 3,4 or even only 1 sample to be generated between callbacks on my system. All the other MIDI drivers use a much lower frequency here. The MidiDriver_Emulated subclasses use a frequency of 250Hz (by default) and the MidiDriver_MPU401 subclasses (which are for example the ALSA output) use 100Hz. With the new frequency of 250Hz 128 samples are generated between callbacks. This will hopefully reduce the overhead of the MT-32 emulator (the engine's code was run 10000 times a second too) a bit. I talked with KingGuppy and it seems the value was increased in the past (still with the very old MT-32 emulator code) because there were accuracy issues. However, I gave the lower frequency a quick test with the MI1, MI2 and ITE intro and didn't spot any obvious differences. As a result, KingGuppy and I agreed to lower it back to 250Hz. If there are any problems coming up we can still slightly increase the frequency to 1000Hz for example. Thanks to waltervn for noticing this. Thanks to KingGuppy for discussion. |
||
---|---|---|
.. | ||
decoders | ||
mods | ||
softsynth | ||
audiostream.cpp | ||
audiostream.h | ||
fmopl.cpp | ||
fmopl.h | ||
mididrv.cpp | ||
mididrv.h | ||
midiparser_qt.cpp | ||
midiparser_qt.h | ||
midiparser_smf.cpp | ||
midiparser_xmidi.cpp | ||
midiparser.cpp | ||
midiparser.h | ||
midiplayer.cpp | ||
midiplayer.h | ||
mixer_intern.h | ||
mixer.cpp | ||
mixer.h | ||
module.mk | ||
mpu401.cpp | ||
mpu401.h | ||
musicplugin.cpp | ||
musicplugin.h | ||
null.cpp | ||
null.h | ||
rate_arm_asm.s | ||
rate_arm.cpp | ||
rate.cpp | ||
rate.h | ||
timestamp.cpp | ||
timestamp.h |