|
|
|
|
|
|
|
|
friend void dma_ch1_isr(void); |
|
|
friend void dma_ch1_isr(void); |
|
|
protected: |
|
|
protected: |
|
|
AudioInputI2S(int dummy): AudioStream(0, NULL) {} // to be used only inside AudioInputI2Sslave !! |
|
|
AudioInputI2S(int dummy): AudioStream(0, NULL) {} // to be used only inside AudioInputI2Sslave !! |
|
|
static bool update_responsibility; // TODO: implement and test this. |
|
|
|
|
|
|
|
|
static bool update_responsibility; |
|
|
private: |
|
|
private: |
|
|
static audio_block_t *block_left; |
|
|
static audio_block_t *block_left; |
|
|
static audio_block_t *block_right; |
|
|
static audio_block_t *block_right; |
|
|
|
|
|
|
|
|
static audio_block_t *block_left; |
|
|
static audio_block_t *block_left; |
|
|
static uint16_t block_offset; |
|
|
static uint16_t block_offset; |
|
|
uint16_t dc_average; |
|
|
uint16_t dc_average; |
|
|
static bool update_responsibility; // TODO: implement and test this. |
|
|
|
|
|
|
|
|
static bool update_responsibility; |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|