aboutsummaryrefslogtreecommitdiff
path: root/audio/softsynth/mt32/TVP.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2012-12-26 21:17:53 +0200
committerFilippos Karapetis2012-12-26 21:28:34 +0200
commit5711d23231d2f7baf965b93e1e771c917bdc246f (patch)
treec8df610d944381d152ff45b61fde59b3f3cb5b74 /audio/softsynth/mt32/TVP.cpp
parent0b72bd2dea0cfea13ab03dc74361aea7ac95c997 (diff)
downloadscummvm-rg350-5711d23231d2f7baf965b93e1e771c917bdc246f.tar.gz
scummvm-rg350-5711d23231d2f7baf965b93e1e771c917bdc246f.tar.bz2
scummvm-rg350-5711d23231d2f7baf965b93e1e771c917bdc246f.zip
MT32: Update the MT32 emulator and adapt to its new API
Previous munt commit was 84b2819 (Dec 22, 2012) Current munt commit is 6afddaf (Dec 23, 2012) This commit also updates the MT32 driver code to the latest munt API
Diffstat (limited to 'audio/softsynth/mt32/TVP.cpp')
-rw-r--r--audio/softsynth/mt32/TVP.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/audio/softsynth/mt32/TVP.cpp b/audio/softsynth/mt32/TVP.cpp
index 32a6067841..5dc4ca6b66 100644
--- a/audio/softsynth/mt32/TVP.cpp
+++ b/audio/softsynth/mt32/TVP.cpp
@@ -47,12 +47,11 @@ static Bit16u keyToPitchTable[] = {
TVP::TVP(const Partial *usePartial) :
partial(usePartial), system_(&usePartial->getSynth()->mt32ram.system) {
- unsigned int sampleRate = usePartial->getSynth()->myProp.sampleRate;
// We want to do processing 4000 times per second. FIXME: This is pretty arbitrary.
- maxCounter = sampleRate / 4000;
+ maxCounter = SAMPLE_RATE / 4000;
// The timer runs at 500kHz. We only need to bother updating it every maxCounter samples, before we do processing.
// This is how much to increment it by every maxCounter samples.
- processTimerIncrement = 500000 * maxCounter / sampleRate;
+ processTimerIncrement = 500000 * maxCounter / SAMPLE_RATE;
}
static Bit16s keyToPitch(unsigned int key) {