Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

Sample Class Reference

#include <sample.h>

List of all members.

Public Methods

 Sample ()
 Sample (string fileName, int chan=-1)
 ~Sample ()
bool Play (int loops)
int GetChannel ()
bool SetChannel (int channel)
bool isPlaying ()

Private Attributes

string name
Mix_Chunk * sample
int channel


Constructor & Destructor Documentation

Sample::Sample  
 

Definition at line 8 of file sample.cpp.

Sample::Sample string    fileName,
int    chan = -1
 

Definition at line 11 of file sample.cpp.

References channel, and sample.

Sample::~Sample  
 

Definition at line 20 of file sample.cpp.

References channel, and sample.


Member Function Documentation

int Sample::GetChannel  
 

Definition at line 27 of file sample.cpp.

References channel.

bool Sample::isPlaying  
 

Definition at line 50 of file sample.cpp.

References channel.

bool Sample::Play int    loops
 

Definition at line 38 of file sample.cpp.

References channel, and sample.

bool Sample::SetChannel int    channel
 

Definition at line 32 of file sample.cpp.

References channel.


Member Data Documentation

int Sample::channel [private]
 

Definition at line 21 of file sample.h.

Referenced by GetChannel(), isPlaying(), Play(), Sample(), SetChannel(), and ~Sample().

string Sample::name [private]
 

Definition at line 19 of file sample.h.

Mix_Chunk* Sample::sample [private]
 

Definition at line 20 of file sample.h.

Referenced by Play(), Sample(), and ~Sample().


The documentation for this class was generated from the following files:
Generated on Sun Dec 8 12:02:22 2002 for nnc by doxygen1.3-rc1