AudioPlaySystem.h
1 #ifndef audioplaysystem_h_ 2 #define audioplaysystem_h_ 3 4 #ifdef HAS_SND 5 6 #include <Audio.h> 7 8 class AudioPlaySystem : public AudioStream 9 { 10 public: 11 AudioPlaySystem(void) : AudioStream(0, NULL) { begin(); } 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 22 private: 23 virtual void update(void); 24 }; 25 #endif 26 27 #endif 28