ClanSoft logo
ClanSoft logo

    CL_Res_Sample

The sound sample resource type.

Parents: public CL_ResourceType

Description

This class is used to load sample resources from a resource source (datafile or script file).

Use the CL_ResourceManager to get an instance to the resource source, and then call one of the static functions here to load the resource:

 CL_ResourceManager res_manager("my_datafile.dat", true);
 CL_SoundBuffer *my_sample = CL_Res_Sample::load("my_sample", res_manager);
 

Class members

static CL_SoundBuffer *load(
        CL_String res_id,
        CL_ResourceManager &manager)
CL_Res_Sample()

See Also

None


Back to index



This page was built using the Perceps documentation system.