Home | All Classes | Grouped Classes | Index | Search

Class CL_Sound

Sound interface in ClanLib. More...

Derived from: none
Derived by: none
Group: Sound (Audio Mixing)

#include <ClanLib/sound.h>

Construction:

Variables:

cards static

The list of soundcards available on this system.

preload_cards static

List of all cards where soundbuffers are automatically preloaded.

Attributes:

get_microphone

Returns the streamed soundprovider representing the microphone.

get_line_in

Returns the streamed soundprovider representing the line in.

get_current_card

Returns the current selected soundcard.

Operations:

clear_card_preload

Clears the list of preloaded soundcards.

add_card_preload

Adds 'card' to the preloaded soundcards list.

remove_card_preload

Removes the specified card from the preload list.

select_card

Change the current selected soundcard to 'card'.

Detailed description:

This class provides a list of all soundcards available on the system. It is also a wrapper class for the CL_SoundCard class, providing an easier access to a single selected soundcard.

All the functions that share name with those in CL_SoundCard have the same functionality. The only difference is, that the ones CL_Sound operate on a selected soundcard. This saves the trouble of passing around a pointer to the soundcard, when only a single one is used anyway.



Questions or comments, write to the
ClanLib mailing list.