Public Methods |
| virtual | ~CL_SoundBuffer () |
| | CL_SoundBuffer (const char *res_id, CL_ResourceManager *manager) |
| | retval: The created soundbuffer.
|
| | CL_SoundBuffer (CL_StaticSoundProvider *provider, bool delete_provider=false, class CL_Resource *resource=NULL) |
| | CL_SoundBuffer (CL_StreamSoundProvider *provider, bool delete_provider=false, class CL_Resource *resource=NULL) |
| | CL_SoundBuffer (const CL_SoundBuffer ©) |
| CL_StaticSoundProvider* | get_static_provider () const |
| CL_StreamSoundProvider* | get_stream_provider () const |
| | retval: The static soundprovider or NULL if none.
|
| int | get_length () const |
| | retval: The streamed soundprovider of NULL if none.
|
| int | get_num_samples () const |
| | retval: Length of soundbuffer.
|
| int | get_frequency () const |
| | retval: Number of samples in soundbuffer.
|
| bool | set_frequency (int new_freq) |
| | retval: Default/start frequency.
|
| float | get_volume () const |
| | param: new_freq - The new default frequency.retval: True if successful, false otherwise.
|
| bool | set_volume (float new_volume) |
| | retval: The volume.
|
| float | get_pan () const |
| | param: new_volume - The new default volume.retval: True if successful, false otherwise.
|
| bool | set_pan (float new_pan) |
| | retval: The panning position.
|
| bool | is_playing (CL_SoundBuffer_Session **session=NULL, CL_SoundCard *card=NULL) const |
| | param: new_pan - The new default panning position.retval: True if successful, false otherwise.
|
| void | stop (CL_SoundCard *card=NULL) |
| | param: session - Pointer to session-pointer, set to point to the first session param: playing this soundbuffer. Return value is only valid if function returns true.
|
| CL_SoundBuffer_Session | play (bool looping=false, CL_SoundCard *card=NULL) |
| CL_SoundBuffer_Session | prepare (bool looping=false, CL_SoundCard *card=NULL) |
| | param: card - Soundcard to be used - NULL means use the current selectedparam: sound card (CL_Sound::get_selected_card().retval: The playback session.
|
Public Attributes |
| class CL_SoundBuffer_Generic* | impl |
| | param: card - Soundcard to be used or NULL to useparam: CL_Sound::get_selected_card().retval: The playback session.implementation:.
|
Static Public Methods |
| CL_SoundBuffer* | load (const char *res_id, CL_ResourceManager *manager) |
| CL_SoundBuffer* | create (CL_StaticSoundProvider *provider, bool delete_provider=false) |
| CL_SoundBuffer* | create (CL_StreamSoundProvider *provider, bool delete_provider=false) |
| | retval: The created soundbuffer.
|