#include <soundbuffer_session.h>
Collaboration diagram for CL_SoundBuffer_Session:

Public Methods | |
| CL_SoundBuffer_Session () | |
| CL_SoundBuffer_Session (void *handle, CL_SoundCard *_card) | |
| CL_SoundBuffer_Session (const CL_SoundBuffer_Session ©) | |
| ~CL_SoundBuffer_Session () | |
| CL_SoundBuffer_Session& | operator= (const CL_SoundBuffer_Session &session) |
| void* | get_handle () const |
| CL_SoundCard* | get_card () const |
| int | get_position () const |
| retval: Pointer to soundcard. | |
| float | get_position_relative () const |
| retval: Current position of soundeffect. | |
| bool | set_position (int new_pos) |
| retval: Relative position of the soundeffect. | |
| bool | set_position_relative (float new_pos) |
| param: The new position of the soundeffect.retval: Returns true if operation completed succesfully. | |
| int | get_length () const |
| param: New relative positionretval: Returns true if operation completed succesfully. | |
| int | get_frequency () const |
| retval: Length of the soundeffect. | |
| bool | set_frequency (int new_freq) |
| retval: Frequency of soundeffect played. | |
| float | get_volume () const |
| param: New frequency of soundeffect.retval: Returns true, if the operation completed succesfully. | |
| bool | set_volume (float new_volume) |
| retval: Volume of soundeffect played. | |
| float | get_pan () const |
| param: new_volume - New volume of soundeffect retval: Returns true if the operation completed succesfully. | |
| bool | set_pan (float new_pan) |
| retval: Current pan of the soundeffect played. | |
| void | play () |
| param: new_pan - New pan of the soundeffect played.retval: Returns true if the operation completed sucecsfully. | |
| void | stop () |
| bool | is_playing () |
| void | set_looping (bool loop) |
| void | add_filter (class CL_SoundFilter *filter, bool delete_filter=false) |
| param: loop - true if session should loop, false otherwise. | |
| void | remove_filter (class CL_SoundFilter *filter) |
| param: filter - Sound filter to pass sound through.param: delete_filter - If true, the filter will be deleted when the session is destroyed. | |
Private Attributes | |
| void* | handle |
| CL_SoundCard* | card |
|
|
Definition at line 36 of file soundbuffer_session.h. |
|
|
|
|
|
|
|
|
|
|
|
param: loop - true if session should loop, false otherwise.
|
|
|
Definition at line 50 of file soundbuffer_session.h. |
|
|
retval: Length of the soundeffect.
|
|
|
Definition at line 48 of file soundbuffer_session.h. |
|
|
param: New relative positionretval: Returns true if operation completed succesfully.
|
|
|
param: new_volume - New volume of soundeffect retval: Returns true if the operation completed succesfully.
|
|
|
retval: Pointer to soundcard.
|
|
|
retval: Current position of soundeffect.
|
|
|
param: New frequency of soundeffect.retval: Returns true, if the operation completed succesfully.
|
|
|
|
|
|
|
|
|
param: new_pan - New pan of the soundeffect played.retval: Returns true if the operation completed sucecsfully.
|
|
|
param: filter - Sound filter to pass sound through.param: delete_filter - If true, the filter will be deleted when the session is destroyed.
|
|
|
retval: Frequency of soundeffect played.
|
|
|
|
|
|
retval: Current pan of the soundeffect played.
|
|
|
retval: Relative position of the soundeffect.
|
|
|
param: The new position of the soundeffect.retval: Returns true if operation completed succesfully.
|
|
|
retval: Volume of soundeffect played.
|
|
|
|
|
|
Definition at line 145 of file soundbuffer_session.h. |
|
|
Definition at line 144 of file soundbuffer_session.h. |
1.2.6 written by Dimitri van Heesch,
© 1997-2001