aboutsummaryrefslogtreecommitdiff
path: root/engines/sword2
diff options
context:
space:
mode:
authorJohannes Schickel2012-03-11 00:51:20 +0100
committerJohannes Schickel2012-03-11 00:51:20 +0100
commit48efab4e5abd8954b7167074b46ff078f6e0d7f4 (patch)
treefdec16829249529eacdbe35e22f2a242e425c7d1 /engines/sword2
parent5e52b0a5d46e4c5b230cba7464301484d27804f7 (diff)
downloadscummvm-rg350-48efab4e5abd8954b7167074b46ff078f6e0d7f4.tar.gz
scummvm-rg350-48efab4e5abd8954b7167074b46ff078f6e0d7f4.tar.bz2
scummvm-rg350-48efab4e5abd8954b7167074b46ff078f6e0d7f4.zip
COMMON: Rename SafeSubReadStream to SafeSeekableSubReadStream.
It actually inherits from SeekableSubReadStream, so it should be named accordingly.
Diffstat (limited to 'engines/sword2')
-rw-r--r--engines/sword2/music.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sword2/music.cpp b/engines/sword2/music.cpp
index 40a4021a5c..62fb3d244d 100644
--- a/engines/sword2/music.cpp
+++ b/engines/sword2/music.cpp
@@ -160,19 +160,19 @@ static Audio::AudioStream *getAudioStream(SoundFileHandle *fh, const char *base,
return makeCLUStream(&fh->file, enc_len);
#ifdef USE_MAD
case kMP3Mode: {
- Common::SafeSubReadStream *tmp = new Common::SafeSubReadStream(&fh->file, pos, pos + enc_len);
+ Common::SafeSeekableSubReadStream *tmp = new Common::SafeSeekableSubReadStream(&fh->file, pos, pos + enc_len);
return Audio::makeMP3Stream(tmp, DisposeAfterUse::YES);
}
#endif
#ifdef USE_VORBIS
case kVorbisMode: {
- Common::SafeSubReadStream *tmp = new Common::SafeSubReadStream(&fh->file, pos, pos + enc_len);
+ Common::SafeSeekableSubReadStream *tmp = new Common::SafeSeekableSubReadStream(&fh->file, pos, pos + enc_len);
return Audio::makeVorbisStream(tmp, DisposeAfterUse::YES);
}
#endif
#ifdef USE_FLAC
case kFLACMode: {
- Common::SafeSubReadStream *tmp = new Common::SafeSubReadStream(&fh->file, pos, pos + enc_len);
+ Common::SafeSeekableSubReadStream *tmp = new Common::SafeSeekableSubReadStream(&fh->file, pos, pos + enc_len);
return Audio::makeFLACStream(tmp, DisposeAfterUse::YES);
}
#endif