AudioPlaySystem.h
1 #ifndef audioplaysystem_h_ 2 #define audioplaysystem_h_ 3 4 #ifdef HAS_SND 5 6 #include "platform_config.h" 7 8 class AudioPlaySystem 9 { 10 public: 11 AudioPlaySystem(void) { }; 12 void begin(void); 13 void setSampleParameters(float clockfreq, float samplerate); 14 void reset(void); 15 void start(void); 16 void stop(void); 17 bool isPlaying(void); 18 void sound(int C, int F, int V); 19 void buzz(int size, int val); 20 void step(void); 21 static void snd_Mixer(short * stream, int len ); 22 void begin_audio(int samplesize, void (*callback)(short * stream, int len)); 23 void end_audio(); 24 static void AUDIO_isr(void); 25 static void SOFTWARE_isr(void); 26 }; 27 28 29 #endif 30 31 #endif