Hi, I haven't had any sound in Minecraft through my headset for a long time, but when I turn on my speakers I can hear the sound through the speakers. In addition, Minecraft is not displayed in the Windows Sound Mixer, but when I have switched on the speakers…
Maybe you deactivated the headphones in the settings?