aboutsummaryrefslogtreecommitdiff
path: root/engines/tinsel
diff options
context:
space:
mode:
authorMax Horn2010-01-28 09:38:21 +0000
committerMax Horn2010-01-28 09:38:21 +0000
commit1c906a1f08f9d1f316c2efd65a347c00e07bc469 (patch)
treee8f741ede9a33e2bd9748faeb4a46130a722f950 /engines/tinsel
parentf85c77d63ea85d62cb5bbf55fe71dd9c42e6924b (diff)
downloadscummvm-rg350-1c906a1f08f9d1f316c2efd65a347c00e07bc469.tar.gz
scummvm-rg350-1c906a1f08f9d1f316c2efd65a347c00e07bc469.tar.bz2
scummvm-rg350-1c906a1f08f9d1f316c2efd65a347c00e07bc469.zip
Hide VagStream implementation, only expose it via a factory method
svn-id: r47634
Diffstat (limited to 'engines/tinsel')
-rw-r--r--engines/tinsel/sound.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/tinsel/sound.cpp b/engines/tinsel/sound.cpp
index ccb978f45e..379f1f2bb0 100644
--- a/engines/tinsel/sound.cpp
+++ b/engines/tinsel/sound.cpp
@@ -109,7 +109,7 @@ bool SoundManager::playSample(int id, Audio::Mixer::SoundType type, Audio::Sound
if (TinselV1PSX) {
// Read the stream and create a VAG Audio stream
- Audio::AudioStream *vagStream = new Audio::VagStream(_sampleStream.readStream(sampleLen), 44100);
+ Audio::AudioStream *vagStream = Audio::makeVagStream(_sampleStream.readStream(sampleLen), 44100);
// FIXME: Should set this in a different place ;)
_vm->_mixer->setVolumeForSoundType(Audio::Mixer::kSFXSoundType, _vm->_config->_soundVolume);