|
-
-
- #ifndef synth_tonesweep_h_
- #define synth_tonesweep_h_
-
- #include "AudioStream.h"
-
-
-
-
- class AudioSynthToneSweep : public AudioStream
- {
- public:
- AudioSynthToneSweep(void) :
- AudioStream(0,NULL), sweep_busy(0)
- { }
-
- boolean play(float t_amp,int t_lo,int t_hi,float t_time);
- virtual void update(void);
- unsigned char isPlaying(void);
-
- private:
- short tone_amp;
- unsigned int tone_lo;
- unsigned int tone_hi;
- uint64_t tone_freq;
- uint64_t tone_phase;
- uint64_t tone_incr;
- int tone_sign;
- unsigned char sweep_busy;
- };
-
- #endif
|