|
-
-
- #ifndef output_SPDIF2_h_
- #define output_SPDIF2_h_
-
- #include "Arduino.h"
- #include "AudioStream.h"
- #include "DMAChannel.h"
-
- class AudioOutputSPDIF2 : public AudioStream
- {
- public:
- AudioOutputSPDIF2(void) : AudioStream(2, inputQueueArray) { begin(); }
- virtual void update(void);
- void begin(void);
-
- static void mute_PCM(const bool mute);
- protected:
-
- static void config_SPDIF(void);
- static audio_block_t *block_left_1st;
- static audio_block_t *block_right_1st;
- static bool update_responsibility;
- static DMAChannel dma;
- static void isr(void);
- private:
- static uint32_t vucp;
- static audio_block_t *block_left_2nd;
- static audio_block_t *block_right_2nd;
- static uint16_t block_left_offset;
- static uint16_t block_right_offset;
- audio_block_t *inputQueueArray[2];
- };
-
-
- #endif
|