diff options
author | James Brown | 2002-03-11 04:37:06 +0000 |
---|---|---|
committer | James Brown | 2002-03-11 04:37:06 +0000 |
commit | e776c275112468897d1eece443be82f9dfe63b67 (patch) | |
tree | 4670b2f6e85f90d784bd2cbed84bafcaa6ba4303 /sound | |
parent | 05704918394439f3e85114a50741658a0ccf16c3 (diff) | |
download | scummvm-rg350-e776c275112468897d1eece443be82f9dfe63b67.tar.gz scummvm-rg350-e776c275112468897d1eece443be82f9dfe63b67.tar.bz2 scummvm-rg350-e776c275112468897d1eece443be82f9dfe63b67.zip |
Remove last Sam and Max #ifdef
svn-id: r3726
Diffstat (limited to 'sound')
-rw-r--r-- | sound/imuse.cpp | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/sound/imuse.cpp b/sound/imuse.cpp index 2dccd75975..0a161029a6 100644 --- a/sound/imuse.cpp +++ b/sound/imuse.cpp @@ -40,11 +40,8 @@ int num_mix; #define TRIGGER_ID 0 #define COMMAND_ID 1 -#ifdef SAMNMAX - #define MDHD_TAG "MDpg" -#else - #define MDHD_TAG "MDhd" -#endif +#define MDPG_TAG "MDpg" +#define MDHD_TAG "MDhd" int clamp(int val, int min, int max) { if (val<min) @@ -180,10 +177,13 @@ bool SoundEngine::start_sound(int sound) { Player *player; void *mdhd; - mdhd = findTag(sound, MDHD_TAG, 0); - if (!mdhd) { - warning("SE::start_sound failed: Couldn't find %s", MDHD_TAG); - return false; + mdhd = findTag(sound, MDHD_TAG, 0); + if (!mdhd) { + mdhd = findTag(sound, MDPG_TAG, 0); + if (!mdhd) { + warning("SE::start_sound failed: Couldn't find %s", MDHD_TAG); + return false; + } } player = allocate_player(128); if (!player) @@ -1019,8 +1019,11 @@ bool Player::start_sound(int sound) { mdhd = _se->findTag(sound, MDHD_TAG, 0); if (mdhd==NULL) { - warning("P::start_sound failed: Couldn't find %s", MDHD_TAG); - return false; + mdhd = _se->findTag(sound, MDPG_TAG, 0); + if (mdhd==NULL) { + warning("P::start_sound failed: Couldn't find %s", MDHD_TAG); + return false; + } } _parts = NULL; _active = true; |