diff --git a/src/AutoAnalogAudio.h b/src/AutoAnalogAudio.h index d9e66e5..b4a94ff 100644 --- a/src/AutoAnalogAudio.h +++ b/src/AutoAnalogAudio.h @@ -200,14 +200,15 @@ class AutoAnalog inline static void adcCallback(uint16_t *buf, uint32_t buf_len); inline static void set_callback(void(*function)(uint16_t *buf, uint32_t buf_len)); inline static bool adcReady; - inline static int16_t dacBuf0[MAX_BUFFER_SIZE]; - inline static int16_t dacBuf1[MAX_BUFFER_SIZE]; + inline static uint16_t dacBuf0[MAX_BUFFER_SIZE]; + inline static uint16_t dacBuf1[MAX_BUFFER_SIZE]; bool micOn; int pwrPin; int dinPin; int clkPin; int8_t gain; inline static uint32_t sampleCounter; + #elif defined (ARDUINO_ARCH_NRF52840) || defined (ARDUINO_ARCH_NRF52) || defined (ARDUINO_NRF52840_FEATHER) && !defined __MBED__ uint16_t dacBuf0[MAX_BUFFER_SIZE]; uint16_t dacBuf1[MAX_BUFFER_SIZE]; @@ -225,6 +226,7 @@ class AutoAnalog int clkPin; int8_t gain; uint32_t sampleCounter; + //void DACC_Handler(); #endif private: