diff options
author | Johannes Schickel | 2010-01-07 17:14:44 +0000 |
---|---|---|
committer | Johannes Schickel | 2010-01-07 17:14:44 +0000 |
commit | aa2f55ddc6730e8c3afce61efa241d5f1b1e6b34 (patch) | |
tree | f11f10e485a11cce728854376b92a3ec3b926b3d /engines/mohawk | |
parent | b47725540f53694ce8d261a2b7b132aff6c6eb74 (diff) | |
download | scummvm-rg350-aa2f55ddc6730e8c3afce61efa241d5f1b1e6b34.tar.gz scummvm-rg350-aa2f55ddc6730e8c3afce61efa241d5f1b1e6b34.tar.bz2 scummvm-rg350-aa2f55ddc6730e8c3afce61efa241d5f1b1e6b34.zip |
Remove the deprecated FLAC, Vorbis and MP3 factories.
svn-id: r47134
Diffstat (limited to 'engines/mohawk')
-rw-r--r-- | engines/mohawk/sound.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/mohawk/sound.cpp b/engines/mohawk/sound.cpp index 59dc6c1151..b3a7f8fc21 100644 --- a/engines/mohawk/sound.cpp +++ b/engines/mohawk/sound.cpp @@ -448,7 +448,7 @@ Audio::AudioStream *Sound::makeMohawkWaveStream(Common::SeekableReadStream *stre } else if (data_chunk.encoding == kCodecMPEG2) { #ifdef USE_MAD Common::MemoryReadStream *dataStream = new Common::MemoryReadStream(data_chunk.audio_data, data_chunk.size, Common::DisposeAfterUse::YES); - return Audio::makeMP3Stream(dataStream, true, 0, 0, !loop); + return Audio::makeLoopingAudioStream(Audio::makeMP3Stream(dataStream, true), loop ? 0 : 1); #else warning ("MAD library not included - unable to play MP2 audio"); #endif |