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

sample.h

Go to the documentation of this file.
00001 #ifndef __SAMPLE_H_
00002 #define __SAMPLE_H_
00003 
00004 #include <string>
00005 #include <SDL/SDL_mixer.h>
00006 
00007 using namespace std;
00008 
00009 class Sample {
00010 public:
00011         Sample();
00012         Sample(string fileName, int chan = -1);                                                                            
00013         ~Sample();                                              
00014         bool Play(int loops);
00015         int GetChannel();
00016         bool SetChannel(int channel);
00017         bool isPlaying();
00018 private:
00019         string name;
00020         Mix_Chunk *sample;
00021         int channel;                                    
00022 };
00023 
00024 #endif

Generated on Sun Dec 8 12:02:20 2002 for nnc by doxygen1.3-rc1