Logo Search packages:      
Sourcecode: catcodec version File versions  Download package

Sample::Sample ( string  filename,
string  name 
)

Creates a new sample by reading the sample from a given (wav) file.

Parameters:
filenamethe file to read the sample from
namethe name of the sample

Definition at line 89 of file sample.cpp.

References ReadSample().

                                           :
      offset(0),
      name(name),
      filename(filename),
      sample_data(NULL)
{
      FileReader sample_reader(filename);
      this->ReadSample(sample_reader, false);
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index