diff options
author | Norbert Lange | 2009-07-17 16:07:57 +0000 |
---|---|---|
committer | Norbert Lange | 2009-07-17 16:07:57 +0000 |
commit | cfe2928d98ecb3bf593299a0cdd8c29c03e0f117 (patch) | |
tree | c7d8ddc988748becb335c0f7d46417f914159457 /engines | |
parent | c0c25d234e7e886462a3663a22b7c88b2e4229db (diff) | |
download | scummvm-rg350-cfe2928d98ecb3bf593299a0cdd8c29c03e0f117.tar.gz scummvm-rg350-cfe2928d98ecb3bf593299a0cdd8c29c03e0f117.tar.bz2 scummvm-rg350-cfe2928d98ecb3bf593299a0cdd8c29c03e0f117.zip |
added primitive support for Kyrandia`s Intro Music.
svn-id: r42567
Diffstat (limited to 'engines')
-rw-r--r-- | engines/kyra/kyra_v1.cpp | 2 | ||||
-rw-r--r-- | engines/kyra/module.mk | 1 | ||||
-rw-r--r-- | engines/kyra/sound_intern.h | 28 |
3 files changed, 31 insertions, 0 deletions
diff --git a/engines/kyra/kyra_v1.cpp b/engines/kyra/kyra_v1.cpp index 80872877d5..a8889768a7 100644 --- a/engines/kyra/kyra_v1.cpp +++ b/engines/kyra/kyra_v1.cpp @@ -113,6 +113,8 @@ Common::Error KyraEngine_v1::init() { _sound = new SoundPC98(this, _mixer); else _sound = new SoundTownsPC98_v2(this, _mixer); + } else if (_flags.platform == Common::kPlatformAmiga) { + _sound = new SoundAmiga(this, _mixer); } else if (midiDriver == MD_ADLIB) { _sound = new SoundAdlibPC(this, _mixer); assert(_sound); diff --git a/engines/kyra/module.mk b/engines/kyra/module.mk index 7b0c0dfb68..b484fa345f 100644 --- a/engines/kyra/module.mk +++ b/engines/kyra/module.mk @@ -50,6 +50,7 @@ MODULE_OBJS := \ sequences_hof.o \ sequences_mr.o \ sound_adlib.o \ + sound_amiga.o \ sound_digital.o \ sound_midi.o \ sound_pcspk.o \ diff --git a/engines/kyra/sound_intern.h b/engines/kyra/sound_intern.h index 8792c14815..a41ca2258c 100644 --- a/engines/kyra/sound_intern.h +++ b/engines/kyra/sound_intern.h @@ -36,6 +36,7 @@ namespace Audio { class PCSpeaker; +class MaxTrax; } // end of namespace Audio namespace Kyra { @@ -343,6 +344,33 @@ private: static const uint8 _noteTable2[]; }; +class SoundAmiga : public Sound { +public: + SoundAmiga(KyraEngine_v1 *vm, Audio::Mixer *mixer); + ~SoundAmiga(); + + virtual kType getMusicType() const { return kPC98; } //FIXME + + bool init(); + + void process() {} + void loadSoundFile(uint file); + void loadSoundFile(Common::String); + + void playTrack(uint8 track); + void haltTrack(); + void beginFadeOut(); + + int32 voicePlay(const char *file, Audio::SoundHandle *handle, uint8 volume, bool isSfx) { return -1; } + void playSoundEffect(uint8); + +protected: + Audio::MaxTrax *_driver; + uint _fileLoaded; + + static const char *const kFilenameTable[3][2]; +}; + } // end of namespace Kyra #endif |