/ MCUME_esp32 / espboot / main / AudioPlaySystem.h
AudioPlaySystem.h
 1  #ifndef audioplaysystem_h_
 2  #define audioplaysystem_h_
 3  
 4  #define DEFAULT_SAMPLESIZE   512  // 22050/50=443 samples per 20ms
 5  #define DEFAULT_SAMPLERATE   22050
 6  
 7  class AudioPlaySystem
 8  {
 9  public:
10  AudioPlaySystem(void) { begin(); }
11  	void begin(void);
12  	void setSampleParameters(float clockfreq, float samplerate);
13  	void reset(void);
14  	void start(void);
15  	void stop(void);
16  	bool isPlaying(void);
17  	void sound(int C, int F, int V);  	
18  	void buzz(int size, int val);
19  	void step(void);  
20  };
21  
22  
23  #endif