aboutsummaryrefslogtreecommitdiff
path: root/sound/audiostream.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sound/audiostream.cpp')
-rw-r--r--sound/audiostream.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/sound/audiostream.cpp b/sound/audiostream.cpp
index 5e6b25740f..d9042c6d07 100644
--- a/sound/audiostream.cpp
+++ b/sound/audiostream.cpp
@@ -237,21 +237,6 @@ public:
int getRate() const { return _rate; }
bool seek(const Timestamp &where);
Timestamp getLength() const { return _playtime; }
-
- void setNumLoops(uint numLoops) {
- _numLoops = numLoops;
- _numPlayedLoops = 0;
-
- if (numLoops == 1) {
- _loopPtr = 0;
- _loopEnd = 0;
- } else {
- _loopPtr = _ptr;
- _loopEnd = _end;
- }
- }
-
- uint getNumPlayedLoops() { return _numPlayedLoops; }
};
template<bool stereo, bool is16Bit, bool isUnsigned, bool isLE>
@@ -312,12 +297,6 @@ class LinearDiskStream : public SeekableAudioStream {
static const int32 BUFFER_SIZE = 16384;
#endif
- void setNumLoops(uint numLoops) {
- _numLoops = numLoops;
- _numPlayedLoops = 0;
- }
- uint getNumPlayedLoops() { return _numPlayedLoops; }
-
protected:
byte* _buffer; ///< Streaming buffer
const byte *_ptr; ///< Pointer to current position in stream buffer