You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Is there a way to stop the background thread after playing a sound? #299
I would expect the thread to stop after audio_device and sink are dropped (or audio_device and source if using play_raw), but the thread still runs. Is there a way to stop rodio's background thread after playing a sound?
I have been investigating high CPU usage on low-power devices (e.g. Raspberry Pi Zero W), over in librespot-org/librespot#567; I suspect it may be this problem (or a related problem). At idle, Rodio consumes 12-13% of a 1GHz ARMv6 core.
Activity
9to1url commentedon Aug 22, 2020
Any update on this issue?
I also want to know how to pause or stop a playing music running on another thread. thanks
mdekstrand commentedon Jan 26, 2021
I have been investigating high CPU usage on low-power devices (e.g. Raspberry Pi Zero W), over in librespot-org/librespot#567; I suspect it may be this problem (or a related problem). At idle, Rodio consumes 12-13% of a 1GHz ARMv6 core.
asafg6 commentedon Apr 14, 2023
I saw 100% cpu usage on my machine when it was loaded but idle.
Not the best solution but works for me in the mean time:
Drops CPU back to 0