All Classes |Grouped Classes |Index

Class CL_SoundProvider_Session

Sound provider playback session. More...

Derived from:

None

Derived by:

None

Group:

Audio Mixing (Sound)

#include <ClanLib/sound.h>

Class Members:

Construction:

CL_SoundProvider_Session


Attributes:

get_num_samples

Returns the number of samples in the soundbuffer.

get_frequency

Returns the playback frequency of the input data.

get_position

Returns the current position in the playback stream.

get_num_channels

Returns the number of channels filled when get_data is called.


Operations:

set_looping

Enable/disable session looping.

eof

Returns true if no more input data is available.

stop

Stops the current stream.

play

Start/continue playing of the stream.

set_position

Sets the position within the current stream.

set_end_position

Sets the end position within the current stream.

get_data

Called when a playback session needs more sample data.

Detailed description:

Interface used by ClanLib during playback of sound providers.