aboutsummaryrefslogtreecommitdiff
path: root/sword1/music.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sword1/music.cpp')
-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();