Loading...
Searching...
No Matches
SoundStream.hpp
Go to the documentation of this file.
7// In no event will the authors be held liable for any damages arising from the use of this software.
unsigned int getChannelCount() const
Return the number of channels of the stream.
void setProcessingInterval(Time interval)
Set the processing interval.
virtual Int64 onLoop()
Change the current playing position in the stream source to the beginning of the loop.
void setLoop(bool loop)
Set whether or not the stream should loop after reaching the end.
@ NoLoop
"Invalid" endSeeks value, telling us to continue uninterrupted
Definition SoundStream.hpp:185
Status getStatus() const
Get the current status of the stream (stopped, paused, playing)
unsigned int getSampleRate() const
Get the stream sample rate of the stream.
virtual void onSeek(Time timeOffset)=0
Change the current playing position in the stream source.
virtual bool onGetData(Chunk &data)=0
Request a new chunk of audio samples from the stream source.
void initialize(unsigned int channelCount, unsigned int sampleRate)
Define the audio stream parameters.
Time getPlayingOffset() const
Get the current playing position of the stream.
void setPlayingOffset(Time timeOffset)
Change the current playing position of the stream.
Definition AlResource.hpp:35
Structure defining a chunk of audio data to stream.
Definition SoundStream.hpp:54