aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2007-07-15 19:26:00 +0000
committerMax Horn2007-07-15 19:26:00 +0000
commit86d015c0551f98aec3924d85c2507462ae0ba73a (patch)
tree694fed8c8157a1b98e4edad5d6872a1ed703246b
parentf4c0b853cc8453acac0c9e6f6901c0056a2288fa (diff)
downloadscummvm-rg350-86d015c0551f98aec3924d85c2507462ae0ba73a.tar.gz
scummvm-rg350-86d015c0551f98aec3924d85c2507462ae0ba73a.tar.bz2
scummvm-rg350-86d015c0551f98aec3924d85c2507462ae0ba73a.zip
Added FIXME comments regarding use of AudioStream::openStreamFile
svn-id: r28112
-rw-r--r--engines/scumm/smush/smush_player.cpp3
-rw-r--r--engines/sword1/music.cpp4
2 files changed, 7 insertions, 0 deletions
diff --git a/engines/scumm/smush/smush_player.cpp b/engines/scumm/smush/smush_player.cpp
index e7663c61c1..ce39302e25 100644
--- a/engines/scumm/smush/smush_player.cpp
+++ b/engines/scumm/smush/smush_player.cpp
@@ -1178,6 +1178,9 @@ void SmushPlayer::tryCmpFile(const char *filename) {
char fname[260];
#endif
Common::File *file = new Common::File();
+
+ // FIXME: How about using AudioStream::openStreamFile instead of the code below?
+
#ifdef USE_VORBIS
memcpy(fname, filename, i - filename);
strcpy(fname + (i - filename), ".ogg");
diff --git a/engines/sword1/music.cpp b/engines/sword1/music.cpp
index ebff7f9929..e6acd8f3cd 100644
--- a/engines/sword1/music.cpp
+++ b/engines/sword1/music.cpp
@@ -203,6 +203,10 @@ bool MusicHandle::play(const char *fileBase, bool loop) {
char fileName[30];
stop();
+ // FIXME: How about using AudioStream::openStreamFile instead of the code below?
+ // I.e.:
+ //_audioSource = Audio::AudioStream::openStreamFile(fileBase, 0, 0, loop ? 0 : 1);
+
#ifdef USE_FLAC
if (!_audioSource) {
sprintf(fileName, "%s.flac", fileBase);