aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNipun Garg2019-08-01 08:08:32 +0530
committerEugene Sandulenko2019-09-03 17:17:31 +0200
commitb51881c4468a72d5cfd41682c7daef7037c2a2a1 (patch)
tree778b0639dd79831bcc69a6c34b7412942f9d04be
parent63f9cd97add918b03affaae516f6bc72de6b3826 (diff)
downloadscummvm-rg350-b51881c4468a72d5cfd41682c7daef7037c2a2a1.tar.gz
scummvm-rg350-b51881c4468a72d5cfd41682c7daef7037c2a2a1.tar.bz2
scummvm-rg350-b51881c4468a72d5cfd41682c7daef7037c2a2a1.zip
HDB: Change song names for PPC
-rw-r--r--engines/hdb/sound.cpp22
1 files changed, 20 insertions, 2 deletions
diff --git a/engines/hdb/sound.cpp b/engines/hdb/sound.cpp
index e31fb6ad9e..f713fe8c36 100644
--- a/engines/hdb/sound.cpp
+++ b/engines/hdb/sound.cpp
@@ -1695,6 +1695,24 @@ void Sound::stopMusic() {
}
bool Sound::beginMusic(SoundType song, bool fadeIn, int ramp) {
+ const char *songName = soundList[song].name;
+
+ if (g_hdb->isPPC()) {
+ switch (song) {
+ case SONG_JEEBIES:
+ songName = "jeebies.mp3";
+ break;
+ case SONG_VIBRACIOUS:
+ songName = "vibracious.mp3";
+ break;
+ case SONG_ARETHERE:
+ songName = "are_we_there_yet.mp3";
+ break;
+ default:
+ break;
+ }
+ }
+
if (!_song1.playing) {
// Start fading out SONG2 if its playing
if (_song2.playing) {
@@ -1705,7 +1723,7 @@ bool Sound::beginMusic(SoundType song, bool fadeIn, int ramp) {
// Load up the song
#ifdef USE_MAD
- Common::SeekableReadStream *stream = SearchMan.createReadStreamForMember(soundList[song].name);
+ Common::SeekableReadStream *stream = SearchMan.createReadStreamForMember(songName);
if (stream == nullptr)
return false;
@@ -1745,7 +1763,7 @@ bool Sound::beginMusic(SoundType song, bool fadeIn, int ramp) {
// Load up the song
#ifdef USE_MAD
- Common::SeekableReadStream *stream = SearchMan.createReadStreamForMember(soundList[song].name);
+ Common::SeekableReadStream *stream = SearchMan.createReadStreamForMember(songName);
if (stream == nullptr)
return false;