diff options
author | Max Horn | 2005-05-10 23:48:48 +0000 |
---|---|---|
committer | Max Horn | 2005-05-10 23:48:48 +0000 |
commit | 1a615346abab8f234c3dbd1c55e78b179bca9d87 (patch) | |
tree | f687ac73ffbfa29088a403b6311bb4db13265fde /scumm/smush/smush_mixer.cpp | |
parent | 72f4c03b0b9a6918a359b967ebc400a2701981d9 (diff) | |
download | scummvm-rg350-1a615346abab8f234c3dbd1c55e78b179bca9d87.tar.gz scummvm-rg350-1a615346abab8f234c3dbd1c55e78b179bca9d87.tar.bz2 scummvm-rg350-1a615346abab8f234c3dbd1c55e78b179bca9d87.zip |
Moved class SoundMixer to Audio::Mixer (didn't call the namespace 'Sound' because we already have many classes with that name)
svn-id: r18039
Diffstat (limited to 'scumm/smush/smush_mixer.cpp')
-rw-r--r-- | scumm/smush/smush_mixer.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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); |