aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2004-01-03 20:42:18 +0000
committerMax Horn2004-01-03 20:42:18 +0000
commitd49082065a1cbcecffb9069e449ce5c8686ea23d (patch)
treeff514a54767681819c74a5328d8e39d376cbed8e
parentcf6a5c0a04a23ac4b8044710f94dc224a1538a45 (diff)
downloadscummvm-rg350-d49082065a1cbcecffb9069e449ce5c8686ea23d.tar.gz
scummvm-rg350-d49082065a1cbcecffb9069e449ce5c8686ea23d.tar.bz2
scummvm-rg350-d49082065a1cbcecffb9069e449ce5c8686ea23d.zip
TODO
svn-id: r12117
-rw-r--r--sword1/music.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/sword1/music.cpp b/sword1/music.cpp
index 7bf913f02a..8b94b9ab69 100644
--- a/sword1/music.cpp
+++ b/sword1/music.cpp
@@ -52,6 +52,8 @@ bool SwordMusicHandle::endOfData() const {
}
int SwordMusicHandle::readBuffer(int16 *buffer, const int numSamples) {
+ // TODO: merge the read() code into readBuffer(), for higher efficency;
+ // we then can remove read() (as it isn't needed for anything anymore).
int samples;
for (samples = 0; samples < numSamples && !endOfData(); samples++)
*buffer++ = read();