Changing sound output device while a sound is playing doesn’t swap which device it’s playing on.
How to replicate:
Start a music with a jukebox and a music disc, listen with it with one device, change ouput device while it’s playing, new sounds (such as menu sounds) can be heard while the still playing music is silent
Environment
Singleplayer
Java Edition
OS: Linux
Thank you for your report!
We're tracking this issue as https://report.bugs.mojang.com/servicedesk/customer/portal/2/MC-237708 , so this ticket is being resolved and linked as a duplicate.
That ticket has already been resolved as Won't Fix, which means this is considered a bug but won't be fixed. The description of that ticket or the comments might explain the rationale. Please do not leave a comment on the linked ticket.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines -- 💬 Community Support -- 📧 Mojang Support (Technical Issues) -- 📧 Microsoft Support (Account Issues) -- 📓 Project Summary -- ✍️ Feedback and Suggestions -- 📖 Game Wiki