From 1a615346abab8f234c3dbd1c55e78b179bca9d87 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 10 May 2005 23:48:48 +0000 Subject: Moved class SoundMixer to Audio::Mixer (didn't call the namespace 'Sound' because we already have many classes with that name) svn-id: r18039 --- scumm/smush/smush_mixer.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'scumm/smush/smush_mixer.cpp') diff --git a/scumm/smush/smush_mixer.cpp b/scumm/smush/smush_mixer.cpp index c97d8c23ee..b24761ff72 100644 --- a/scumm/smush/smush_mixer.cpp +++ b/scumm/smush/smush_mixer.cpp @@ -33,7 +33,7 @@ namespace Scumm { -SmushMixer::SmushMixer(SoundMixer *m) : +SmushMixer::SmushMixer(Audio::Mixer *m) : _mixer(m), _soundFrequency(22050) { for (int32 i = 0; i < NUM_CHANNELS; i++) { @@ -109,27 +109,27 @@ bool SmushMixer::handleFrame() { _channels[i].chan->getParameters(rate, stereo, is_16bit, vol, pan); int32 size = _channels[i].chan->availableSoundData(); - byte flags = stereo ? SoundMixer::FLAG_STEREO : 0; + byte flags = stereo ? Audio::Mixer::FLAG_STEREO : 0; if (is_16bit) { data = malloc(size * (stereo ? 2 : 1) * 4); _channels[i].chan->getSoundData((int16 *)data, size); size *= stereo ? 4 : 2; - flags |= SoundMixer::FLAG_16BITS; + flags |= Audio::Mixer::FLAG_16BITS; } else { data = malloc(size * (stereo ? 2 : 1) * 2); _channels[i].chan->getSoundData((int8 *)data, size); size *= stereo ? 2 : 1; - flags |= SoundMixer::FLAG_UNSIGNED; + flags |= Audio::Mixer::FLAG_UNSIGNED; } if (_mixer->isReady()) { if (!_channels[i].stream) { _channels[i].stream = makeAppendableAudioStream(rate, flags, 500000); - _mixer->playInputStream(SoundMixer::kSFXSoundType, &_channels[i].handle, _channels[i].stream); + _mixer->playInputStream(Audio::Mixer::kSFXSoundType, &_channels[i].handle, _channels[i].stream); } _mixer->setChannelVolume(_channels[i].handle, vol); _mixer->setChannelBalance(_channels[i].handle, pan); -- cgit v1.2.3