Remove setNumLoops and getNumPlayedLoops from AudioStream.

svn-id: r47137
This commit is contained in:
Johannes Schickel 2010-01-07 17:45:38 +00:00
parent 20a43c638c
commit 127213f706
2 changed files with 0 additions and 37 deletions

View File

@ -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

View File

@ -83,22 +83,6 @@ public:
* By default this maps to endOfData()
*/
virtual bool endOfStream() const { return endOfData(); }
/**
* Sets number of times the stream is supposed to get looped
* This also resets the number of loops played counter, which
* can be queried with getNumPlayedLoops.
* @see getNumPlayedLoops
*
* @param numLoops number of loops to play, 0 - infinite
*/
virtual void setNumLoops(uint numLoops = 1) {}
/**
* Returns number of loops the stream has played.
* @param numLoops number of loops to play, 0 - infinite
*/
virtual uint getNumPlayedLoops() { return 0; }
};
/**