From 86d015c0551f98aec3924d85c2507462ae0ba73a Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 15 Jul 2007 19:26:00 +0000 Subject: Added FIXME comments regarding use of AudioStream::openStreamFile svn-id: r28112 --- engines/scumm/smush/smush_player.cpp | 3 +++ engines/sword1/music.cpp | 4 ++++ 2 files changed, 7 insertions(+) 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); -- cgit v1.2.3