openalpp::Sample Class Reference

#include <sample.h>

Inheritance diagram for openalpp::Sample:

openalpp::SoundData openalpp::AudioBase openalpp::Referenced List of all members.

Public Member Functions

 Sample (const std::string &filename) throw (FileError)
 Sample (const Sample &sample)
 Sample (ALenum format, ALvoid *data, ALsizei size, ALsizei freq) throw (FileError)
std::string getFileName () const
Sampleoperator= (const Sample &sample)

Protected Member Functions

virtual ~Sample ()

Detailed Description

Class for loading sampled files.


Constructor & Destructor Documentation

openalpp::Sample::Sample ( const std::string &  filename  )  throw (FileError)

Constructor.

Parameters:
filename is name of file to load.

openalpp::Sample::Sample ( const Sample sample  ) 

Copy constructor.

openalpp::Sample::Sample ( ALenum  format,
ALvoid *  data,
ALsizei  size,
ALsizei  freq 
) throw (FileError)

Constructor.

Parameters:
format to use to create sample from data.
data use to create sample.
size of data.
freq of data.

virtual openalpp::Sample::~Sample (  )  [protected, virtual]

Destructor


Member Function Documentation

std::string openalpp::Sample::getFileName (  )  const

Get file name of loaded file.

Returns:
file name.

Sample& openalpp::Sample::operator= ( const Sample sample  ) 

Assignment operator.


The documentation for this class was generated from the following file:
Generated on Sun Oct 15 08:41:42 2006 for openalpp by  doxygen 1.4.7