#include <audiostream.h>
Public Member Functions | |
| bool | seek (uint32 where) |
| virtual bool | seek (const Timestamp &where)=0 |
| virtual Timestamp | getLength () const =0 |
| virtual bool | rewind () |
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 |
Static Public Member Functions | |
| static SeekableAudioStream * | openStreamFile (const Common::Path &basename) |
A seekable audio stream.
Subclasses of this class implement an interface for seeking. The seeking itself is not required to be working while the stream is being played by the mixer.
|
static |
Attempt to load a file by trying all available formats.
In case of an error, the file handle will be closed, but deleting it is still the responsibility of the caller.
| basename | File name without an extension. |
|
inline |
Seek to a given offset in the stream.
| where | Offset in milliseconds. |
|
pure virtual |
Seek to a given offset in the stream.
| where | Offset as a timestamp. |
Implemented in Audio::SubSeekableAudioStream, Audio::Mp3PspStream, Audio::VocStream, Audio::QuickTimeAudioDecoder::QuickTimeAudioTrack, Audio::ADPCMStream, and AudioCDStream.
|
pure virtual |
Return the length of the stream.
Implemented in Audio::SubSeekableAudioStream, Audio::Mp3PspStream, Audio::VocStream, Audio::QuickTimeAudioDecoder::QuickTimeAudioTrack, Audio::ADPCMStream, and AudioCDStream.
|
inlinevirtual |
Rewind the stream to its start.
Implements Audio::RewindableAudioStream.
Reimplemented in Audio::ADPCMStream.