audio continues to be played over the speakers (or no audio plays at all). To solve this, uninstall your driver and reboot to allow Windows to reinstall it. If this fails, uninstall your audio ...
Alternatively, you can open the Windows Settings > System > Troubleshoot ... changes you should make to fix or avoid running into no sound output after unplugging headphones.
If you're using a Windows 11 machine that's running the most recent 24H2 update, you may want to consider ear protection, as Microsoft has confirmed the existence of a bug that whacks your volume all ...