diff options
author | Bendegúz Nagy | 2016-08-16 19:38:52 +0200 |
---|---|---|
committer | Bendegúz Nagy | 2016-08-26 23:02:22 +0200 |
commit | 621d83c66b0d9781835c274fe23c2ae2d12bc604 (patch) | |
tree | f76d0593e1437862d8d8f64b31969e325130f870 /engines/dm/sounds.cpp | |
parent | 0eb61d0a7d1450ca79adfe8ef4bd3874de51ce67 (diff) | |
download | scummvm-rg350-621d83c66b0d9781835c274fe23c2ae2d12bc604.tar.gz scummvm-rg350-621d83c66b0d9781835c274fe23c2ae2d12bc604.tar.bz2 scummvm-rg350-621d83c66b0d9781835c274fe23c2ae2d12bc604.zip |
DM: Add SoundMan_Atari
Diffstat (limited to 'engines/dm/sounds.cpp')
-rw-r--r-- | engines/dm/sounds.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/dm/sounds.cpp b/engines/dm/sounds.cpp index c90409da60..ad9bc09f97 100644 --- a/engines/dm/sounds.cpp +++ b/engines/dm/sounds.cpp @@ -27,6 +27,7 @@ #include "audio/audiostream.h" #include "audio/decoders/raw.h" +#include <advancedDetector.h> #include "dm.h" #include "gfx.h" @@ -38,6 +39,14 @@ namespace DM { +SoundMan* SoundMan::getSoundMan(DMEngine* vm, const ADGameDescription* gameVersion) { + switch (gameVersion->platform) { + default: warning(false, "Unknown platform, using default Amiga SoundMan"); + case Common::kPlatformAmiga: return new SoundMan(vm); + case Common::kPlatformAtariST: return new SoundMan_Atari(vm); + } +} + SoundMan::SoundMan(DMEngine* vm) : _vm(vm) {} SoundMan::~SoundMan() { @@ -45,6 +54,7 @@ SoundMan::~SoundMan() { delete[] _gK24_soundData[i]._firstSample; } + Sound g60_sounds[k34_D13_soundCount] = { Sound(533, 112, 11, 3, 6), /* k00_soundMETALLIC_THUD 0 */ Sound(534, 112, 15, 0, 3), /* k01_soundSWITCH 1 */ @@ -207,4 +217,5 @@ void SoundMan::f064_SOUND_RequestPlay_CPSD(uint16 soundIndex, int16 mapX, int16 _pendingSounds.push(PendingSound(leftVolume, rightVolume, soundIndex)); } + } |