#include <soundprovider_session.h>
Public Member Functions | |
Construction | |
| CL_SoundProvider_Session () | |
| virtual | ~CL_SoundProvider_Session () |
Attributes | |
| virtual int | get_num_samples () const =0 |
| Returns the number of samples in the soundbuffer. | |
| virtual int | get_frequency () const =0 |
| Returns the playback frequency of the input data. | |
| virtual int | get_position () const =0 |
| Returns the current position in the playback stream. | |
| virtual CL_SoundFormat | get_format () const =0 |
| Returns the playback sample format. | |
| virtual int | get_num_channels () const =0 |
| Returns the number of channels filled when get_data is called. | |
Operations | |
| virtual bool | set_looping (bool loop) |
| Enable/disable session looping. | |
| virtual bool | eof () const =0 |
| Returns true if no more input data is available. | |
| virtual void | stop ()=0 |
| Stops the current stream. | |
| virtual bool | play ()=0 |
| Start/continue playing of the stream. | |
| virtual bool | set_position (int pos)=0 |
| Sets the position within the current stream. | |
| virtual int | get_data (float **data_ptr, int data_requested)=0 |
| Called when a playback session needs more sample data. | |
Interface used by ClanLib during playback of sound providers.
|
|
|
|
|
|
|
|
Returns true if no more input data is available.
|
|
||||||||||||
|
Called when a playback session needs more sample data.
|
|
|
Returns the playback sample format.
|
|
|
Returns the playback frequency of the input data.
|
|
|
Returns the number of channels filled when get_data is called.
|
|
|
Returns the number of samples in the soundbuffer.
|
|
|
Returns the current position in the playback stream.
|
|
|
Start/continue playing of the stream.
|
|
|
Enable/disable session looping. If this function returns false (default), the clanSound mixer will manually try to simulate looping by setting the position to 0 when eof is encountered. |
|
|
Sets the position within the current stream.
|
|
|
Stops the current stream.
|
1.4.6