diff options
author | Eugene Sandulenko | 2016-11-29 19:39:04 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2016-11-29 19:39:04 +0100 |
commit | d712d2bcff54b7dedcc4f74a22ea6dde8b952256 (patch) | |
tree | debfe6d531b916f1466346b775499404d9326093 /engines/fullpipe/sound.cpp | |
parent | afe8a2bb3187d6f041c992f2bde1817a55c3db29 (diff) | |
download | scummvm-rg350-d712d2bcff54b7dedcc4f74a22ea6dde8b952256.tar.gz scummvm-rg350-d712d2bcff54b7dedcc4f74a22ea6dde8b952256.tar.bz2 scummvm-rg350-d712d2bcff54b7dedcc4f74a22ea6dde8b952256.zip |
FULLPIPE: Initial code for scene04 music
Diffstat (limited to 'engines/fullpipe/sound.cpp')
-rw-r--r-- | engines/fullpipe/sound.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/fullpipe/sound.cpp b/engines/fullpipe/sound.cpp index d52d8dc4ec..fd248f5699 100644 --- a/engines/fullpipe/sound.cpp +++ b/engines/fullpipe/sound.cpp @@ -367,8 +367,12 @@ int FullpipeEngine::getSceneTrack() { void FullpipeEngine::startSoundStream1(const char *trackName) { stopAllSoundStreams(); + playOggSound(trackName, _soundStream1); +} + +void FullpipeEngine::playOggSound(const char *trackName, Audio::SoundHandle *stream) { #ifdef USE_VORBIS - if (_mixer->isSoundHandleActive(*_soundStream1)) + if (_mixer->isSoundHandleActive(*stream)) return; Common::File *track = new Common::File(); @@ -378,7 +382,7 @@ void FullpipeEngine::startSoundStream1(const char *trackName) { return; } Audio::RewindableAudioStream *ogg = Audio::makeVorbisStream(track, DisposeAfterUse::YES); - _mixer->playStream(Audio::Mixer::kMusicSoundType, _soundStream1, ogg); + _mixer->playStream(Audio::Mixer::kMusicSoundType, stream, ogg); #endif } |