aboutsummaryrefslogtreecommitdiff
path: root/sword2
diff options
context:
space:
mode:
Diffstat (limited to 'sword2')
-rw-r--r--sword2/driver/d_sound.cpp2
-rw-r--r--sword2/driver/d_sound.h6
2 files changed, 5 insertions, 3 deletions
diff --git a/sword2/driver/d_sound.cpp b/sword2/driver/d_sound.cpp
index 303fcb5893..696c85a36b 100644
--- a/sword2/driver/d_sound.cpp
+++ b/sword2/driver/d_sound.cpp
@@ -105,7 +105,7 @@ int16 MusicHandle::read() {
return out;
}
-bool MusicHandle::eos() const {
+bool MusicHandle::endOfData() const {
return (!_streaming || _filePos >= _fileEnd);
}
diff --git a/sword2/driver/d_sound.h b/sword2/driver/d_sound.h
index b36e402002..a62054853d 100644
--- a/sword2/driver/d_sound.h
+++ b/sword2/driver/d_sound.h
@@ -61,14 +61,16 @@ public:
virtual int readBuffer(int16 *buffer, const int numSamples) {
int samples;
- for (samples = 0; samples < numSamples && !eos(); samples++) {
+ for (samples = 0; samples < numSamples && !endOfData(); samples++) {
*buffer++ = read();
}
return samples;
}
int16 read();
- bool eos() const;
+ bool endOfData() const;
+ // This stream never 'ends'
+ bool endOfStream() const { return false; }
MusicHandle() : _firstTime(false),
_streaming(false), _paused(false), _looping(false),