diff options
| author | Gregory Montoir | 2007-02-21 20:27:48 +0000 |
|---|---|---|
| committer | Gregory Montoir | 2007-02-21 20:27:48 +0000 |
| commit | 948630c3b452cdfd480c7f6fe9398bcda57501d7 (patch) | |
| tree | 2c8de196552036b81861c91bbcec4fe86ca2cbac /sound/mods | |
| parent | 098bcc2fe88220f6ff656d6f42beabc55b2bf8d9 (diff) | |
| download | scummvm-rg350-948630c3b452cdfd480c7f6fe9398bcda57501d7.tar.gz scummvm-rg350-948630c3b452cdfd480c7f6fe9398bcda57501d7.tar.bz2 scummvm-rg350-948630c3b452cdfd480c7f6fe9398bcda57501d7.zip | |
added initial support for FOTAQ amiga versions
svn-id: r25769
Diffstat (limited to 'sound/mods')
| -rw-r--r-- | sound/mods/rjp1.cpp | 6 | ||||
| -rw-r--r-- | sound/mods/rjp1.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sound/mods/rjp1.cpp b/sound/mods/rjp1.cpp index be0794cdc6..f2967181cb 100644 --- a/sound/mods/rjp1.cpp +++ b/sound/mods/rjp1.cpp @@ -82,7 +82,7 @@ public: int instrumentsCount; }; - Rjp1(int rate = 44100, bool stereo = true); + Rjp1(int rate, bool stereo); virtual ~Rjp1(); bool load(Common::SeekableReadStream *songData, Common::SeekableReadStream *instrumentsData); @@ -519,8 +519,8 @@ const int16 Rjp1::_periodsTable[] = { const int Rjp1::_periodsCount = ARRAYSIZE(_periodsTable); -AudioStream *makeRjp1Stream(Common::SeekableReadStream *songData, Common::SeekableReadStream *instrumentsData, int song) { - Rjp1 *stream = new Rjp1; +AudioStream *makeRjp1Stream(Common::SeekableReadStream *songData, Common::SeekableReadStream *instrumentsData, int song, int rate, bool stereo) { + Rjp1 *stream = new Rjp1(rate, stereo); if (stream->load(songData, instrumentsData)) { stream->startSong(song); return stream; diff --git a/sound/mods/rjp1.h b/sound/mods/rjp1.h index ae36869a73..b9c9ab2a6c 100644 --- a/sound/mods/rjp1.h +++ b/sound/mods/rjp1.h @@ -29,7 +29,7 @@ namespace Audio { class AudioStream; -AudioStream *makeRjp1Stream(Common::SeekableReadStream *songData, Common::SeekableReadStream *instrumentsData, int song); +AudioStream *makeRjp1Stream(Common::SeekableReadStream *songData, Common::SeekableReadStream *instrumentsData, int song, int rate = 44100, bool stereo = true); } // End of namespace Audio |
