mirror of
https://github.com/bevyengine/bevy.git
synced 2026-05-06 06:06:42 -04:00
17a1b081cb
# Objective - All Bevy programs with bevy_audio print a line to stderr when they exit: ``` Dropping DeviceSink, audio playing through this sink will stop, to prevent this message from appearing use tracing or call `.log_on_drop(false)` on this DeviceSink ``` - This is an expected print by rodio: https://github.com/RustAudio/rodio/blob/7e9ba6dd017abb88a1de8c287849c89c3624437d/src/stream.rs#L99-L108 ## Solution - Enable the tracing feature so that it's logged instead of printed - set `log_on_drop(false)` on the audio sink created by Bevy. It's expected to stop playing sound when it's dropped