aboutsummaryrefslogtreecommitdiff
path: root/engines/sword1
diff options
context:
space:
mode:
authorMax Horn2007-02-25 00:04:35 +0000
committerMax Horn2007-02-25 00:04:35 +0000
commit9823cbe1ea724f7fbadd11676d082ce97e298078 (patch)
tree2d32fbcd882502cb98cacbcc68e70a196bf8fdf5 /engines/sword1
parent21b095ce208e1816845b1c1503c0164c68caba02 (diff)
downloadscummvm-rg350-9823cbe1ea724f7fbadd11676d082ce97e298078.tar.gz
scummvm-rg350-9823cbe1ea724f7fbadd11676d082ce97e298078.tar.bz2
scummvm-rg350-9823cbe1ea724f7fbadd11676d082ce97e298078.zip
Added TODO: Sword1's MusicHandle::play etc. should be rewritten to take advantage of the enhanced compressed audio stream code
svn-id: r25841
Diffstat (limited to 'engines/sword1')
-rw-r--r--engines/sword1/music.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/sword1/music.cpp b/engines/sword1/music.cpp
index 333c465705..41ca36e306 100644
--- a/engines/sword1/music.cpp
+++ b/engines/sword1/music.cpp
@@ -130,6 +130,14 @@ Audio::AudioStream *MusicHandle::createAudioSource(void) {
}
bool MusicHandle::play(const char *fileBase, bool loop) {
+/*
+TODO/FIXME: This should be rewritten to make use of the new audio stream factories.
+In particular, it should take advantage of the looping capabilities; and it
+should avoid reading all the data into memory (by not using the old factory functions).
+Essentially, it seems to me as if we could get rid of createAudioSource().
+
+Maybe it could even be change to use AudioStream::openStreamFile.
+*/
char fileName[30];
stop();
_musicMode = MusicNone;