This ticket includes switching between all types of audio devices, not just headphones.
To work around the issue, you can manually reload sounds (and all other resources) with F3+T.
The game fails to switch audio outputs, meaning that headphones cannot start or stop being used after game start.
After the game start, plugging in the headphones should have audio going through the headphones. Unplugging them should have audio going through the speakers (Unless, the default speakers say otherwise).
After plugging (or unplugging) headphones, no sound can be heard because the sound is still going to the jack. (or still not going to the jack. The Computer OS detects the headphones muting the speakers, which is normal operation)
Reproduction steps
No audio through headphones
- Start minecraft with no headphones in headphone jack*
- Plug headphones into headphone jack* (title screen or in-game)
*Headphones can be typical audio jack or USB
No audio through speakers
- Start minecraft with headphones in headphone jack*
- Unplug headphones from headphone jack* (title screen or in-game)
*Headphones can be typical audio jack or USB
I'm unaware if this problem can be caused from the launcher.
Workaround
See LWJGL forum post:
In the meantime, you could try fixing this with a virtual audio device. I'm not sure what's available on Linux/PulseAudio, but it's certainly possible on Windows. You create a virtual audio device and configure it as the default. It's what Minecraft/OpenAL Soft will use to output audio. Then you configure the virtual device to forward any audio to the real audio device of your choice. You should then be able to change the downstream device, on the fly, without breaking Minecraft/OpenAL Soft.
Suggested fix
See LWJGL forum post:
What could be done to resolve this? Suggestions:
- Minecraft regularly queries alcGetInteger(device, ALC_CONNECTED), via the ALC_EXT_disconnect extension. If it returns ALC_FALSE, it automatically recreates the audio context.
- Minecraft regularly queries alcGetString(NULL, ALC_DEFAULT_ALL_DEVICES_SPECIFIER). This returns a string that describes the default audio device. If it changes, it automatically recreates the audio context.
- Minecraft queries ALC_ALL_DEVICES_SPECIFIER (also regularly updates it) and displays the list of available audio devices. Instead of changing the default audio device from the OS settings, users can change the audio device used by Minecraft itself. This is the simplest and most robust solution. I don't remember a PC game that doesn't have such an option in its audio settings.
- is duplicated by
-
MC-19443 Switching default sound output device while having Minecraft open doesn't change sound output until launcher restart.
- Resolved
-
MC-25528 Minecraft does not allow output of audio to change device..
- Resolved
-
MC-26748 No sound in usb headset on Linux
- Resolved
-
MC-37397 Switching sound devices results in no sound until MC restarts.
- Resolved
-
MC-44971 Sound does not work when switching audio ouptut
- Resolved
-
MC-49786 Sound output doesn't update when changing playback device
- Resolved
-
MC-56067 Minecraft Does not update to default audio device
- Resolved
-
MC-58737 Sound does not work when changing default sound devices
- Resolved
-
MC-58820 Default playback device does not update if changed while Minecraft is running
- Resolved
-
MC-64258 Must restart Minecraft if plugging in headphones to hear sound
- Resolved
-
MC-67753 Game requires restart when connecting USB audio device.
- Resolved
-
MC-70760 Doesn't change audio output
- Resolved
-
MC-79960 Music Stops Playing
- Resolved
-
MC-106407 Audio sometimes doesn't work
- Resolved
-
MC-112308 Can't play sound when I plug off my earphones and plug in it again
- Resolved
-
MC-127865 Standard audio device change gets ignored
- Resolved
-
MC-135302 Changing output device in Windows doesn't switch sound in Minecraft
- Resolved
-
MC-141760 Sounds need to be reloaded if the audio output changes
- Resolved
-
MC-145480 Audio doesnt switch input
- Resolved
-
MC-149678 Has no sound after changing the output device
- Resolved
-
MC-149815 Sounds will not play upon disconnecting and then reconnecting an audio device.
- Resolved
-
MC-150159 sound not workig
- Resolved
-
MC-150573 Sound lost when changing output
- Resolved
-
MC-154333 sound gets off when changing audio output device
- Resolved
-
MC-156296 Sounds not transferring to headphones if plugged in during game-session
- Resolved
-
MC-156640 Sound turning off
- Resolved
-
MC-161623 No sound after connecting to Bluetooth Earbuds
- Resolved
-
MC-166158 Taking out audio devices and plugging them back in will cause the sound to be disabled
- Resolved
-
MC-167366 can't hear music or sound
- Resolved
-
MC-167493 No audio in 1.15
- Resolved
-
MC-172621 Audio stops working after audio devices are changed
- Resolved
-
MC-173698 Minecraft stops outputting sounds after I connect a new audio device.
- Resolved
-
MC-175659 No Sound After Computer Sleeps
- Resolved
-
MC-176347 Sounds don't work
- Resolved
-
MC-178597 Sound problems
- Resolved
-
MC-180869 Audio output not changing
- Resolved
-
MC-182237 Headphones won't work
- Resolved
-
MC-182373 Sound Issue
- Resolved
-
MC-182425 Sound stops after PC comes back from Sleep
- Resolved
-
MC-184716 No Sound after switching audio device on Windows
- Resolved
-
MC-185507 Audio Issues
- Resolved
-
MC-187596 Does not respect changing system audio output device while running (Linux)
- Resolved
-
MC-188305 Invalid sound behaviour when changed sound output device
- Resolved
-
MC-188312 Audio does not switch to/from USB audio adapter when said adapter is plugged in/unplugged.
- Resolved
-
MC-191502 Sound doesnt switches if I switch my sound device
- Resolved
-
MC-192860 Sound bound to one output device
- Resolved
-
MC-193259 Minecraft Audio doesn't play if speakers or headphones are disconnected and reconnected
- Resolved
-
MC-194571 Fails to Update Audio Devices
- Resolved
-
MC-197728 PLEASE FIX IT
- Resolved
-
MC-198058 No sound after re-connecting device
- Resolved
-
MC-198262 When an audio input is changed
- Resolved
-
MC-198757 Minecraft audio output is not changing when changing system output
- Resolved
-
MC-200031 Sound disappears when turning off, then on bluetooth speakers/headphones
- Resolved
-
MC-200333 No Sound When Audio Device Gets Switched
- Resolved
-
MC-201176 Minecraft's Default Audio Device Not Able To Be Changed While Running
- Resolved
-
MC-201258 False audio when switching output devices in same session.
- Resolved
-
MC-201581 Unable to change Minecraft audio device in game or OS
- Resolved
-
MC-202915 Audio output switch
- Resolved
-
MC-203030 Audio does not switch to headphones on after game was started with speakers attached.
- Resolved
-
MC-203156 Connecting a bluetooth headset after the game has already been launched causes no sound to be output
- Resolved
-
MC-203525 A audio source problem
- Resolved
-
MC-205470 Re-entering the game after locking the screen will make all sounds disappear
- Resolved
-
MC-207128 The sound doesn't work when changing output devices.
- Resolved
-
MC-208007 If you disconnect Bluetooth headphones from your computer, Minecraft doesn't make any sound, unless you close it then reopen it
- Resolved
-
MC-208773 When a audio switches sound is muted
- Resolved
-
MC-210431 Minecraft sound doesn't output to USB Bluetooth headset when headset connects while Minecraft is already running
- Resolved
-
MC-213692 Sound cuts off eventually
- Resolved
-
MC-214580 1.16.5 Audio Bug
- Resolved
-
MC-214948 Headphone Audio Issue
- Resolved
-
MC-215476 Game audio not playing through external speakers
- Resolved
-
MC-216066 Headphones/headsets problem
- Resolved
-
MC-222906 audio stops when reconnecting headphones
- Resolved
-
MC-222908 Minecraft Audio Device Update bug
- Resolved
-
MC-224449 Audio device switch causes no sound.
- Resolved
-
MC-225293 cant hear game when wired headset is unplugged
- Resolved
-
MC-226356 Sound Problems
- Resolved
-
MC-227304 Audio does not switch from headphones to speaker audio if unplugged an vice versa
- Resolved
-
MC-228082 Audio not going through
- Resolved
-
MC-229266 Sound doesn't work, after headphones or sound device get unplugged
- Resolved
-
MC-230141 Audio does not switch from headphones to speaker audio if unplugged an vice versa
- Resolved
-
MC-232430 Sound
- Resolved
-
MC-233510 audio stops working after changing default output from speakers to headphones and vice versa
- Resolved
-
MC-233552 Minecraft sound does not change when a new output device is selected.
- Resolved
-
MC-234070 Minecraft goes silent when Bluetooth headphones switch off
- Resolved
-
MC-235268 audio doesnt work when new output is connected
- Resolved
-
MC-235597 Audio stops working if you change/remove your audio output
- Resolved
-
MC-235737 Audio is completely gone when an audio source is not available, EXCEPT WHEN THE GAME IS RESTARTED
- Resolved
-
MC-236011 No audio after exiting sleep mode
- Resolved
-
MC-236187 Sound stops playing when output changed
- Resolved
-
MC-236282 Game sound desn't update when connecting earphones.
- Resolved
-
MC-237041 Headphones won't work unless you reopen Minecraft:JavaEdition on computer
- Resolved
-
MC-238335 Randomly or when I unplug my headset and plug it back in no matter what i try the game refuses to play any sounds.
- Resolved
-
MC-240996 game sound stops working
- Resolved
-
MC-242409 Doesn't connect to latest device
- Resolved
-
MC-242410 It doesn't play any sound
- Resolved
-
MC-242417 No Sound After Removing Headphones
- Resolved
- relates to
-
MC-237708 Switching audio devices causes all currently playing sounds to stop
- Resolved