diff options
author | Paul Gilbert | 2016-08-09 19:03:05 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-08-09 19:03:05 -0400 |
commit | 30936a6115160e8e79b3c768c2ee97aae9cbd554 (patch) | |
tree | 58c0b3a9062078e835d6ccf20f0c239b3e719b1d /engines/titanic/sound/music_player.cpp | |
parent | 0f1fd5c9553fa0db01ceb12f7d315cead6ab2a64 (diff) | |
download | scummvm-rg350-30936a6115160e8e79b3c768c2ee97aae9cbd554.tar.gz scummvm-rg350-30936a6115160e8e79b3c768c2ee97aae9cbd554.tar.bz2 scummvm-rg350-30936a6115160e8e79b3c768c2ee97aae9cbd554.zip |
TITANIC: Finish CMusicPlayer class
Diffstat (limited to 'engines/titanic/sound/music_player.cpp')
-rw-r--r-- | engines/titanic/sound/music_player.cpp | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/engines/titanic/sound/music_player.cpp b/engines/titanic/sound/music_player.cpp index 86ec0dbb22..fb5a596875 100644 --- a/engines/titanic/sound/music_player.cpp +++ b/engines/titanic/sound/music_player.cpp @@ -125,8 +125,36 @@ bool CMusicPlayer::CreateMusicPlayerMsg(CCreateMusicPlayerMsg *msg) { } CMusicHandler *musicHandler = getMusicRoom()->createMusicHandler(); + CMusicWave *wave; + if (musicHandler) { - // TODO + wave = musicHandler->createMusicWave(0, 3); + wave->load(0, "z#490.wav", 60); + wave->load(1, "z#488.wav", 62); + wave->load(2, "z#489.wav", 63); + + wave = musicHandler->createMusicWave(1, 5); + wave->load(0, "z#493.wav", 22); + wave->load(1, "z#495.wav", 29); + wave->load(2, "z#492.wav", 34); + wave->load(3, "z#494.wav", 41); + wave->load(4, "z#491.wav", 46); + + wave = musicHandler->createMusicWave(2, 5); + wave->load(0, "z#499.wav", 26); + wave->load(1, "z#497.wav", 34); + wave->load(2, "z#498.wav", 38); + wave->load(3, "z#496.wav", 46); + wave->load(4, "z#500.wav", 60); + + wave = musicHandler->createMusicWave(3, 7); + wave->load(0, "z#504.wav", 22); + wave->load(1, "z#507.wav", 29); + wave->load(2, "z#503.wav", 34); + wave->load(3, "z#506.wav", 41); + wave->load(4, "z#502.wav", 46); + wave->load(5, "z#505.wav", 53); + wave->load(6, "z#501.wav", 58); CMusicRoom::_musicHandler->set124(_fieldCC); } |