casoundeffect.h

00001 #ifndef CASOUNDEFFECT_H
00002 #define CASOUNDEFFECT_H
00003 
00004 #include <ClanLib/core.h>
00005 #include <ClanLib/sound.h>
00006 
00007 
00011 class CASoundEffect {
00012 public:
00013     CASoundEffect( CL_SoundBuffer* sample, int maxPlays=1 );
00014     ~CASoundEffect();
00015 
00016     void play( int num=1 );
00017     void setVolume( float v );
00018     float getVolume( int ind=0 );
00019     void setFrequency( int f );
00020     int getFrequency( int ind=0 );
00021 
00022     static void playBackgroundMelody ();
00023 
00024 private:
00026 
00027     CL_SoundBuffer* sample;
00029     int maxPlays;
00031     int numPlays;
00033     CL_SoundBuffer_Session* session;
00034 
00035 };
00036 
00037 #endif

Generated on Tue Nov 28 06:48:28 2006 by  doxygen 1.5.0