ploopyco / headphones

A set of 3D-printed headphones, alongside a DAC/amp/EQ board powered by a Raspberry Pico.
833 stars 43 forks source link

Fix save config #27

Closed george-norton closed 8 months ago

george-norton commented 9 months ago

This PR moves the save config functionality to the top of the audio processing callback, we skip processing the audio packet if we need to save. This frees up a load of cycles for writing to flash. If no audio is playing we save immediately as we might not get a callback at all.

ploopyco commented 8 months ago

Sweet deal, looks like this works perfectly. :D