CL_Sample3
Clanlib's datafile samples. this class can read samples from datafiles.
Class members
- static CL_SoundBuffer *
create( -
const char *sample_id, CL_InputSourceProvider *provider)
CL_Sample(-
const char *s_id, CL_InputSourceProvider *_provider)
- virtual
~CL_Sample()
- virtual void
lock()
- virtual void
unlock()
- virtual SoundFormat
get_format()
- virtual int
data_size()
- virtual void *
get_data()
- virtual int
get_frequency()
Members with descriptions
- static CL_SoundBuffer *
create( -
const char *sample_id, CL_InputSourceProvider *provider)
Description:
Loads the sample sample_id from the inputsource provider provider. Creates a CL_SoundBuffer using this sample and returns it.
CL_Sample(-
const char *s_id, CL_InputSourceProvider *_provider)
Description:
Constructs a static sound provider that represents sample_id from theinputsource provider provider.
- virtual
~CL_Sample() -
Description:
- virtual void
lock() -
Description:
Locks the sample data.
- virtual void
unlock() -
Description:
Unlocks the sample data.
- virtual SoundFormat
get_format() -
Description:
Returns the sample format used by this sample.
- virtual int
data_size() -
Description:
Returns the size of the sample.
- virtual void *
get_data() -
Description:
Returns the sample data. Must be locked before this is done.
- virtual int
get_frequency() -
Description:
Returns the default frequency used when playing this sample.