Repair a verified behavior in earlephilhower/arduino-pico.
Repair a verified behavior in earlephilhower/arduino-pico.: a task in OriGent-RL-Data (Harbor dataset). The RP2040 PWMAudio library rejects sample-rate changes while an output is active. After PWMAudio::begin() succeeds, PWMAudio::setFrequency(int) returns false and leaves the active output at its…
The task
The RP2040 PWMAudio library rejects sample-rate changes while an output is active. After PWMAudio::begin() succeeds, PWMAudio::setFrequency(int) returns false and leaves the active output at its previous rate; an application therefore has to stop and restart the audio object to change the rate.
Part of henryen/OriGent-RL-Data.