Home | All Classes | Grouped Classes | Index | Search

Class CL_Sample

ClanLib's datafile samples. This class can read samples from datafiles. More...

Derived from: CL_StaticSoundProvider
Derived by: none
Group: Sound (Sound Providers)

#include <ClanLib/sound.h>

Construction:

create

Loads the sample 'sample_id' from the inputsource provider 'provider'. Creates a CL_SoundBuffer using this sample and returns it.

CL_Sample

Constructs a static sound provider that represents 'sample_id' from the inputsource provider 'provider'.

Operations:

lock

Locks the sample data.

unlock

Unlocks the sample data.

Attributes:

get_format

Returns the sample format used by this sample.

data_size

Returns the size of the sample.

get_data

Returns the sample data. Must be locked before this is done.

get_frequency

Returns the default frequency used when playing this sample.

Detailed description:



Questions or comments, write to the
ClanLib mailing list.