#include <audiostream.h>
Public Member Functions | |
virtual uint | getCompleteIterations () const =0 |
virtual void | setRemainingIterations (uint loops)=0 |
Public Member Functions inherited from Audio::AudioStream | |
virtual int | readBuffer (int16 *buffer, const int numSamples)=0 |
virtual bool | isStereo () const =0 |
virtual int | getRate () const =0 |
virtual bool | endOfData () const =0 |
virtual bool | endOfStream () const |
Generic loopable audio stream. Subclasses of this are used to feed looping sampled audio data into ScummVM's audio mixer.
|
pure virtual |
Return the number of loops that the stream has played.
Implemented in Audio::SubLoopingAudioStream, and Audio::LoopingAudioStream.
|
pure virtual |
Set the number of remaining loops the stream should play before stopping.
Implemented in Audio::SubLoopingAudioStream, and Audio::LoopingAudioStream.