Skip to content

Auto Playlist is being disabled by autochange when switching from ambient to music playlist #256

@terminusxx

Description

@terminusxx

What happened?

When using auto playlist with auto change there is a chance that when switching from ambient playlist to music playlist auto change will ask for a preset change before the preset change to the music playlist can take effect which auto playlist then takes as an outside action and disables itself. When autochange is turned off while autoplaylist is left on this no longer happens.

To Reproduce Bug

Turn on audio reactive with autoplaylist and autochange on with a mic connected, in my experience within an hour or two it will disable itself.

Expected Behavior

Autochange should wait until the music playlist preset is applied instead of racing against it.

Install Method

Self-Compiled or other

What version/release of MM WLED?

build 2501170, esp32_4MB_S.bin

Which microcontroller/board are you seeing the problem on?

ESP32

Relevant log/trace output

AutoPlaylist: Sound detected
JSON buffer locked. (19)
FILE '/presets.json' open to read, size 2546 bytes
JSON buffer released. (19)
AutoPlaylist: Applying "MusicPlaylist"
Playlist unloaded.
Request to apply preset: 2 from source: CALL_MODE_NOTIFICATION
--- lowest distance =  166 - no changes done in 143350ms - next change_threshold is  166 (  67 diff approx)
Request to apply preset: 5 from source: CALL_MODE_BUTTON
*** CHANGE distance =  166 - change_interval was 143350ms - next change_threshold is  183 (  17 diff aprox)
JSON buffer locked. (9)
Applying preset: 5 (original request source: CALL_MODE_BUTTON)
FILE '/presets.json' open to read, size 2546 bytes
deserializeState {"on":true,"bri":245,"transition":7,"mainseg":0,"seg":[{"id":0,"start":0,"stop":30,"grp":1,"spc":0,"of":0,"on":true,"frz":false,"bri":255,"cct":127,"set":0,"n":"","col":[[255,160,0],[0,0,0],[0,0,0]],"fx":156,"sx":128,"ix":128,"pal":1,"c1":128,"c2":128,"c3":16,"sel":true,"rev":false,"mi":false,"o1":false,"o2":false,"o3":false,"si":0,"m12":2},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0}],"ledmap":0,"n":"Gravcenter 🎨⋮♪"}
deserializeSegment {"id":0,"start":0,"stop":30,"grp":1,"spc":0,"of":0,"on":true,"frz":false,"bri":255,"cct":127,"set":0,"n":"","col":[[255,160,0],[0,0,0],[0,0,0]],"fx":156,"sx":128,"ix":128,"pal":1,"c1":128,"c2":128,"c3":16,"sel":true,"rev":false,"mi":false,"o1":false,"o2":false,"o3":false,"si":0,"m12":2}
-- Copy segment constructor --
JSON buffer released. (9)
sendDataWs
JSON buffer locked. (12)
serializeState 0 {}
serializeSegment {}
AR I2S cycle time: 12.81 ms
AR Sampling time :  1.34 ms
AR filter time   :  1.17 ms
AR FFT time      :  3.69 ms
JSON buffer size: 4075 for WS request (2486).
Sending WS data to multiple clients.
JSON buffer released. (12)
Current mode or palette changed.
AutoPlaylist: disable due to manual change of playlist from 2 to -1, preset:5

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions