aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction
diff options
context:
space:
mode:
authorMax Horn2010-01-23 00:35:14 +0000
committerMax Horn2010-01-23 00:35:14 +0000
commit8508a97adde127b151d80d003b19f73160938f52 (patch)
tree25538c077e35e93684d330f183297d918aa79cbf /engines/parallaction
parent409e44e7c34ed901f884eeea2824fae6c5cad068 (diff)
downloadscummvm-rg350-8508a97adde127b151d80d003b19f73160938f52.tar.gz
scummvm-rg350-8508a97adde127b151d80d003b19f73160938f52.tar.bz2
scummvm-rg350-8508a97adde127b151d80d003b19f73160938f52.zip
Get rid of two more FLAG_LOOP instances
svn-id: r47459
Diffstat (limited to 'engines/parallaction')
-rw-r--r--engines/parallaction/sound_br.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/engines/parallaction/sound_br.cpp b/engines/parallaction/sound_br.cpp
index f18e151760..b775ce48d9 100644
--- a/engines/parallaction/sound_br.cpp
+++ b/engines/parallaction/sound_br.cpp
@@ -415,15 +415,9 @@ Audio::AudioStream *DosSoundMan_br::loadChannelData(const char *filename, Channe
// TODO: Confirm sound rate
int rate = 11025;
- uint32 loopStart = 0, loopEnd = 0;
- uint32 flags = Audio::FLAG_UNSIGNED;
-
- if (looping) {
- loopEnd = dataSize;
- flags |= Audio::FLAG_LOOP;
- }
-
- ch->stream = Audio::makeRawMemoryStream(data, dataSize, DisposeAfterUse::YES, rate, flags, loopStart, loopEnd);
+ ch->stream = Audio::makeLoopingAudioStream(
+ Audio::makeRawMemoryStream(data, dataSize, DisposeAfterUse::YES, rate, Audio::FLAG_UNSIGNED),
+ looping ? 0 : 1);
return ch->stream;
}