diff options
author | Max Horn | 2010-01-19 22:30:33 +0000 |
---|---|---|
committer | Max Horn | 2010-01-19 22:30:33 +0000 |
commit | dc5e08e623453aef8bbd92c484dde26d67d91d1e (patch) | |
tree | 44a32a70bcb683d9d4adb6d9cbd9aa8c641fa7fa /engines/mohawk | |
parent | 68826c27daabe92782053c17c838ef585cad28c8 (diff) | |
download | scummvm-rg350-dc5e08e623453aef8bbd92c484dde26d67d91d1e.tar.gz scummvm-rg350-dc5e08e623453aef8bbd92c484dde26d67d91d1e.tar.bz2 scummvm-rg350-dc5e08e623453aef8bbd92c484dde26d67d91d1e.zip |
Move raw audio flags from sound/mixer.h to sound/raw.h
svn-id: r47395
Diffstat (limited to 'engines/mohawk')
-rw-r--r-- | engines/mohawk/sound.cpp | 10 | ||||
-rw-r--r-- | engines/mohawk/video/qt_player.cpp | 6 |
2 files changed, 8 insertions, 8 deletions
diff --git a/engines/mohawk/sound.cpp b/engines/mohawk/sound.cpp index 33bc71e8bf..e0b95c96e0 100644 --- a/engines/mohawk/sound.cpp +++ b/engines/mohawk/sound.cpp @@ -435,11 +435,11 @@ Audio::AudioStream *Sound::makeMohawkWaveStream(Common::SeekableReadStream *stre // The sound in the CD version of Riven is encoded in Intel DVI ADPCM // The sound in the DVD version of Riven is encoded in MPEG-2 Layer II or Intel DVI ADPCM if (data_chunk.encoding == kCodecRaw) { - byte flags = Audio::Mixer::FLAG_UNSIGNED; + byte flags = Audio::FLAG_UNSIGNED; if (data_chunk.channels == 2) - flags |= Audio::Mixer::FLAG_STEREO; + flags |= Audio::FLAG_STEREO; if (data_chunk.loop == 0xFFFF || loop) - flags |= Audio::Mixer::FLAG_LOOP; + flags |= Audio::FLAG_LOOP; return Audio::makeRawMemoryStream(data_chunk.audio_data, data_chunk.size, DisposeAfterUse::YES, data_chunk.sample_rate, flags, data_chunk.loopStart, data_chunk.loopEnd); } else if (data_chunk.encoding == kCodecADPCM) { Common::MemoryReadStream *dataStream = new Common::MemoryReadStream(data_chunk.audio_data, data_chunk.size, DisposeAfterUse::YES); @@ -481,10 +481,10 @@ Audio::AudioStream *Sound::makeOldMohawkWaveStream(Common::SeekableReadStream *s stream->read(data, size); delete stream; - byte flags = Audio::Mixer::FLAG_UNSIGNED; + byte flags = Audio::FLAG_UNSIGNED; if (loop) - flags |= Audio::Mixer::FLAG_LOOP; + flags |= Audio::FLAG_LOOP; return Audio::makeRawMemoryStream(data, size, DisposeAfterUse::YES, rate, flags, 0, 0); } diff --git a/engines/mohawk/video/qt_player.cpp b/engines/mohawk/video/qt_player.cpp index 4ddb8d2ee8..e53818fe2e 100644 --- a/engines/mohawk/video/qt_player.cpp +++ b/engines/mohawk/video/qt_player.cpp @@ -1161,11 +1161,11 @@ Audio::AudioStream *QTPlayer::createAudioStream(Common::SeekableReadStream *stre // Fortunately, most of the audio used in Myst videos is raw... uint16 flags = 0; if (_streams[_audioStreamIndex]->codec_tag == MKID_BE('raw ')) - flags |= Audio::Mixer::FLAG_UNSIGNED; + flags |= Audio::FLAG_UNSIGNED; if (_streams[_audioStreamIndex]->channels == 2) - flags |= Audio::Mixer::FLAG_STEREO; + flags |= Audio::FLAG_STEREO; if (_streams[_audioStreamIndex]->bits_per_sample == 16) - flags |= Audio::Mixer::FLAG_16BITS; + flags |= Audio::FLAG_16BITS; uint32 dataSize = stream->size(); byte *data = (byte *)malloc(dataSize); stream->read(data, dataSize); |