33 #include "../soundformat.h"
40 class SoundProvider_Session_Impl;
85 virtual bool eof()
const = 0;
113 virtual int get_data(
float **data_ptr,
int data_requested) = 0;
virtual bool set_position(int pos)=0
Sets the position within the current stream.
virtual int get_position() const =0
Returns the current position in the playback stream.
virtual int get_num_channels() const =0
Returns the number of channels filled when get_data is called.
virtual bool set_end_position(int pos)=0
Sets the end position within the current stream.
virtual int get_frequency() const =0
Returns the playback frequency of the input data.
Sound provider playback session.
Definition: soundprovider_session.h:46
virtual int get_num_samples() const =0
Returns the number of samples in the soundbuffer.
virtual int get_data(float **data_ptr, int data_requested)=0
Called when a playback session needs more sample data.
virtual ~SoundProvider_Session()
virtual bool play()=0
Start/continue playing of the stream.
virtual bool eof() const =0
Returns true if no more input data is available.
virtual bool set_looping(bool)
Enable/disable session looping.
Definition: soundprovider_session.h:81
virtual void stop()=0
Stops the current stream.