Sample interface in ClanLib. More...
Derived from: | None |
Derived by: | None |
Group: | Audio Mixing (Sound) |
#include <ClanLib/sound.h>
Class Members:
Construction: | |
Construct a null instance. |
| |
Returns the sound provider to be used for playback. | |
Returns the start/default volume used when the buffer is played. | |
Returns the default panning position when the buffer is played. | |
Returns true if this object is invalid. | |
Throw an exception if this object is invalid. |
| |
Sets the volume of the sound buffer in a relative measure (0->1) | |
Sets the panning of the sound buffer played in measures from -1 -> 1. | |
Adds the sound filter to the sound buffer. | |
Remove the sound filter from the sound buffer. | |
Plays the soundbuffer on the specified soundcard. | |
Prepares the soundbuffer for playback on the specified soundcard. |
Detailed description:
The CL_SoundBuffer class represents a sample in ClanLib. It can either be static or streamed. The soundbuffer gets its sample data from a soundprovider, that is passed during construction.