Skip to content

Commit 50bb4d2

Browse files
committed
I2S_USE_16BIT_SAMPLES does not work
add build error, as the 16bit code does not work any more in esp-idf v4.x
1 parent 279573e commit 50bb4d2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

usermods/audioreactive/audio_source.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ constexpr i2s_port_t AR_I2S_PORT = I2S_NUM_0; // I2S port to use (do not c
7171
//#endif
7272

7373
#ifdef I2S_USE_16BIT_SAMPLES
74+
#if (ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 2, 0)) // see https://github.com/MoonModules/WLED-MM/issues/333#issuecomment-3910779668
75+
#error "16bit sampling currently does not work with newer framework versions. Please build without I2S_USE_16BIT_SAMPLES"
76+
#endif
7477
#define I2S_SAMPLE_RESOLUTION I2S_BITS_PER_SAMPLE_16BIT
7578
#define I2S_datatype int16_t
7679
#define I2S_unsigned_datatype uint16_t

0 commit comments

Comments
 (0)