aboutsummaryrefslogtreecommitdiff
path: root/engines/sword2
diff options
context:
space:
mode:
authorMatthew Hoops2011-08-24 09:47:24 -0400
committerMatthew Hoops2011-08-24 09:54:19 -0400
commit40fd9ce27c8579f97e8ca5c0917366b1a069c5e9 (patch)
treeaf0174340d4cd1af79609c2883eca221305c892a /engines/sword2
parentadb69a5a39bb58a0ac6866b64ede228692a80488 (diff)
downloadscummvm-rg350-40fd9ce27c8579f97e8ca5c0917366b1a069c5e9.tar.gz
scummvm-rg350-40fd9ce27c8579f97e8ca5c0917366b1a069c5e9.tar.bz2
scummvm-rg350-40fd9ce27c8579f97e8ca5c0917366b1a069c5e9.zip
AUDIO: Remove default rate parameter from xa
Diffstat (limited to 'engines/sword2')
-rw-r--r--engines/sword2/music.cpp2
-rw-r--r--engines/sword2/sound.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/sword2/music.cpp b/engines/sword2/music.cpp
index 1e52cc29a7..1bb08fd36f 100644
--- a/engines/sword2/music.cpp
+++ b/engines/sword2/music.cpp
@@ -267,7 +267,7 @@ Audio::AudioStream *makePSXCLUStream(Common::File *file, int size) {
byte *buffer = (byte *)malloc(size);
file->read(buffer, size);
- return Audio::makeXAStream(new Common::MemoryReadStream(buffer, size, DisposeAfterUse::YES));
+ return Audio::makeXAStream(new Common::MemoryReadStream(buffer, size, DisposeAfterUse::YES), 11025);
}
// ----------------------------------------------------------------------------
diff --git a/engines/sword2/sound.cpp b/engines/sword2/sound.cpp
index d9260cc2d5..aea33e99e3 100644
--- a/engines/sword2/sound.cpp
+++ b/engines/sword2/sound.cpp
@@ -234,7 +234,7 @@ void Sound::playMovieSound(int32 res, int type) {
Audio::RewindableAudioStream *input = 0;
if (Sword2Engine::isPsx()) {
- input = Audio::makeXAStream(stream);
+ input = Audio::makeXAStream(stream, 11025);
} else {
input = Audio::makeWAVStream(stream, DisposeAfterUse::YES);
}
@@ -361,7 +361,7 @@ int32 Sound::playFx(Audio::SoundHandle *handle, byte *data, uint32 len, uint8 vo
Audio::RewindableAudioStream *input = 0;
if (Sword2Engine::isPsx())
- input = Audio::makeXAStream(stream);
+ input = Audio::makeXAStream(stream, 11025);
else
input = Audio::makeWAVStream(stream, DisposeAfterUse::YES);