Home | All Classes | Grouped Classes | Index | Search
CL_SoundBuffer_Session provides control over a playing soundeffect. More...
Derived from:
none
Derived by:
none
Group: Sound (Audio Mixing)
#include <ClanLib/sound.h>
Construction:
Creates a soundbuffer session. |
Attributes:
Returns the current sample position of the playback. | |
Returns the sample position relative to the full length. | |
Returns the total length (in samples) of the sound buffer played. | |
Returns the frequency of the session. | |
Returns the linear relative volume of the soundeffect. | |
Returns the current pan (in a measure from -1 -> 1). | |
Returns the current speedfactor. | |
Returns true if the session is playing |
Operations:
Sets the session position to 'new_pos'. | |
Sets the relative position of the session. | |
Sets the frequency of the session. | |
Sets the volume of the session in a relative measure (0->1) | |
Sets the panning of the session played in measures from -1 -> 1 | |
Sets the speedfactor of the session. | |
Starts playback of the session. | |
Stops playback of the session. | |
Rewinds the session so playback will start from the beginning. | |
Determines whether this session should loop | |
Adds the sound filter to the session. See CL_SoundFilter for details. | |
Remove the sound filter from the session. See CL_SoundFilter for details. | |
Removes all filters from the session. |
Detailed description:
!group=Sound/Audio Mixing! !header=sound.h!Whenever a soundbuffer is played, it returns a CL_SoundBuffer_Session class, which can be used to control the sound (its volume, pitch, pan, position). It can also be used to retrigger the sound or to stop it.