aboutsummaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorSven Hesse2007-02-04 15:59:05 +0000
committerSven Hesse2007-02-04 15:59:05 +0000
commit0ed752aa6ee77a6a5262c366c41e1d08ba3ab44c (patch)
treecddf5d607ba2ba51a35d4bae47c6c6d9a4ba9bda /sound
parent890ee9728524e30719297624261f749d8138b65d (diff)
downloadscummvm-rg350-0ed752aa6ee77a6a5262c366c41e1d08ba3ab44c.tar.gz
scummvm-rg350-0ed752aa6ee77a6a5262c366c41e1d08ba3ab44c.tar.bz2
scummvm-rg350-0ed752aa6ee77a6a5262c366c41e1d08ba3ab44c.zip
- Moved the specific interrupt frequency of 80 Hz out of class Infogrames into the GobEngine's Infogrames instances
- Changed the 80 Hz to 75 Hz, which is more true to the original svn-id: r25389
Diffstat (limited to 'sound')
-rw-r--r--sound/mods/infogrames.cpp4
-rw-r--r--sound/mods/infogrames.h3
2 files changed, 4 insertions, 3 deletions
diff --git a/sound/mods/infogrames.cpp b/sound/mods/infogrames.cpp
index a1eeddf22d..a901e48419 100644
--- a/sound/mods/infogrames.cpp
+++ b/sound/mods/infogrames.cpp
@@ -120,8 +120,8 @@ const uint16 Infogrames::periods[] =
0x0A0A, 0x0A0A, 0x0A0A, 0x0202, 0x0202, 0x0202, 0x0202, 0x0202, 0x0202,
0x0202, 0x0202, 0x0202, 0x0202, 0x4040, 0x4040, 0x2000};
-Infogrames::Infogrames(Instruments &ins, bool stereo, int rate) :
- Paula(stereo, rate, rate/80) {
+Infogrames::Infogrames(Instruments &ins, bool stereo, int rate,
+ int interruptFreq) : Paula(stereo, rate, interruptFreq) {
_instruments = &ins;
_data = 0;
_repCount = -1;
diff --git a/sound/mods/infogrames.h b/sound/mods/infogrames.h
index 78bc9efd82..c40f107947 100644
--- a/sound/mods/infogrames.h
+++ b/sound/mods/infogrames.h
@@ -70,7 +70,8 @@ public:
friend class Infogrames;
};
- Infogrames(Instruments &ins, bool stereo = false, int rate = 44100);
+ Infogrames(Instruments &ins, bool stereo = false, int rate = 44100,
+ int interruptFreq = 0);
~Infogrames();
Instruments *getInstruments(void) const { return _instruments; }