|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
-
-
- #ifndef output_dacs_h_
- #define output_dacs_h_
-
- #include "Arduino.h"
- #include "AudioStream.h"
- #include "DMAChannel.h"
-
- class AudioOutputAnalogStereo : public AudioStream
- {
- public:
- AudioOutputAnalogStereo(void) : AudioStream(2, inputQueueArray) { begin(); }
- virtual void update(void);
- void begin(void);
- void analogReference(int ref);
- private:
- static audio_block_t *block_left_1st;
- static audio_block_t *block_left_2nd;
- static audio_block_t *block_right_1st;
- static audio_block_t *block_right_2nd;
- static audio_block_t block_silent;
- static bool update_responsibility;
- audio_block_t *inputQueueArray[2];
- static DMAChannel dma;
- static void isr(void);
- };
-
- #endif
|