|
-
-
- #ifndef analyze_print_h_
- #define analyze_print_h_
-
- #include "Arduino.h"
- #include "AudioStream.h"
-
- class AudioAnalyzePrint : public AudioStream
- {
- public:
- AudioAnalyzePrint(void) : AudioStream(1, inputQueueArray),
- myname(NULL), state(0), trigger_edge(0), delay_length(0), print_length(500) {}
- virtual void update(void);
- void name(const char *str) { myname = str; }
- void trigger(void);
- void trigger(float level, int edge);
- void delay(uint32_t num) { delay_length = num; }
- void length(uint32_t num) { print_length = num; }
- private:
- const char *myname;
- uint8_t state;
- uint8_t trigger_edge;
- int16_t trigger_level;
- uint32_t delay_length;
- uint32_t print_length;
- uint32_t count;
- audio_block_t *inputQueueArray[1];
- };
-
- #endif
|