@@ -1179,14 +1179,22 @@ class PolyBus {
|
|||||||
#else
|
#else
|
||||||
// standard ESP32 has 8 RMT and 2 I2S channels
|
// standard ESP32 has 8 RMT and 2 I2S channels
|
||||||
#ifndef WLEDMM_FASTPATH
|
#ifndef WLEDMM_FASTPATH
|
||||||
if (num > 9) return I_NONE;
|
#ifdef WLEDMM_SLOWPATH // I2S flickers on large installs. Favor stability over framerate.
|
||||||
if (num == 8) offset = 2; // first use I2S#1 (so #0 stays available for audio)
|
if (num > 7) return I_NONE;
|
||||||
if (num == 9) offset = 1; // use I2S#0 as the last driver
|
#else
|
||||||
|
if (num == 8) offset = 2; // first use I2S#1 (so #0 stays available for audio)
|
||||||
|
if (num == 9) offset = 1; // use I2S#0 as the last driver
|
||||||
|
if (num > 9) return I_NONE;
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
// ESP32 "audio_fastpath" - 8 RMT and 1 I2S channels. RMT 5-8 have sending delays, so use I2S#1 before going for RMT 5-8
|
// ESP32 "audio_fastpath" - 8 RMT and 1 I2S channels. RMT 5-8 have sending delays, so use I2S#1 before going for RMT 5-8
|
||||||
if (num > 8) return I_NONE;
|
#ifdef WLEDMM_SLOWPATH // I2S flickers on large installs. Favor stability over framerate.
|
||||||
if (num == 1) offset = 2; // use I2S#1 as 2nd bus - seems to be a good compromise for performance, and reduces flickering for some users
|
if (num > 7) return I_NONE;
|
||||||
//if (num == 0) offset = 2; // un-comment to use I2S#1 as 1st bus - sometimes helps, if you experience flickering during Wifi or filesystem activity.
|
#else
|
||||||
|
if (num > 8) return I_NONE;
|
||||||
|
if (num == 1) offset = 2; // use I2S#1 as 2nd bus - seems to be a good compromise for performance, and reduces flickering for some users
|
||||||
|
// if (num == 0) offset = 2; // un-comment to use I2S#1 as 1st bus - sometimes helps, if you experience flickering during Wifi or filesystem activity.
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
switch (busType) {
|
switch (busType) {
|
||||||
|
|||||||
Reference in New Issue
Block a user