/ MCUME_pico / display / AudioPlaySystem.h
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  };
23  
24  #endif
25  
26  #endif