aboutsummaryrefslogtreecommitdiff
path: root/engines/sword1/music.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2010-01-07 16:34:56 +0000
committerJohannes Schickel2010-01-07 16:34:56 +0000
commitd5fe29c3c949fda84a5a7a276160d57e646fc952 (patch)
treeba643bf1510a6fd061500abef7f08d432bbc7693 /engines/sword1/music.cpp
parentca5e1379452f7777fd032baeb342ce88634d1836 (diff)
downloadscummvm-rg350-d5fe29c3c949fda84a5a7a276160d57e646fc952.tar.gz
scummvm-rg350-d5fe29c3c949fda84a5a7a276160d57e646fc952.tar.bz2
scummvm-rg350-d5fe29c3c949fda84a5a7a276160d57e646fc952.zip
Make makeWAVStream return a RewindableAudioStream.
svn-id: r47129
Diffstat (limited to 'engines/sword1/music.cpp')
-rw-r--r--engines/sword1/music.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sword1/music.cpp b/engines/sword1/music.cpp
index 67ea0bf376..a82384659c 100644
--- a/engines/sword1/music.cpp
+++ b/engines/sword1/music.cpp
@@ -215,7 +215,7 @@ bool MusicHandle::play(const char *fileBase, bool loop) {
if (!_audioSource) {
sprintf(fileName, "%s.wav", fileBase);
if (_file.open(fileName))
- _audioSource = Audio::makeWAVStream(&_file, false, loop ? 0 : 1);
+ _audioSource = Audio::makeLoopingAudioStream(Audio::makeWAVStream(&_file, false), loop ? 0 : 1);
}
if (!_audioSource) {