We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 227c996 commit c081206Copy full SHA for c081206
src/AudioTools/CoreAudio/AudioI2S/I2SESP32V1.h
@@ -351,9 +351,15 @@ class I2SDriverESP32V1 {
351
352
protected:
353
i2s_pdm_tx_slot_config_t getTxSlotConfig(I2SConfigESP32V1 &cfg) {
354
+#ifdef ARDUINO
355
+ return I2S_PDM_TX_SLOT_DEFAULT_CONFIG(
356
+ (i2s_data_bit_width_t)cfg.bits_per_sample,
357
+ (i2s_slot_mode_t)cfg.channels);
358
+#else
359
return I2S_PDM_TX_SLOT_DAC_DEFAULT_CONFIG(
360
(i2s_data_bit_width_t)cfg.bits_per_sample,
361
(i2s_slot_mode_t)cfg.channels);
362
+#endif
363
}
364
365
i2s_chan_config_t getChannelConfig(I2SConfigESP32V1 &cfg) {
0 commit comments