I opened Wine configuration page for the first time while music was playing in the background. Just when I opened the Audio tab, the sound stopped working and Wine alerted me about my audio driver. Now my PC has no sound!
What should I do to get back audio? I don't need audio in Wine.
To get sound back when Wine destroys it all, you only need to do:
killall -9 pulseaudio
The pulseaudio system will restart itself in a few seconds, there is no need to manually run it.
To avoid this situation I usually try and close apps that will make sound while Wine is running, in particular Firefox with Flash. I also set my IM status to away (where the client is configured to not make message sounds)
Wine and pulseaudio have always had difficulties working together. If your not sure about the different sound systems available on Ubuntu/Linux, here's a very simplified overview (from my memory, so it may not be 100% correct).
There are several other differences between each one, but that's all that really matters to the end user as far as I'm concerned. However Wine and PulseAudio are historically pretty buggy together, and I have a feeling that sound output will die when you run any Wine application (not just winecfg). You have a few options to prevent this, none of them ideal (ideally you wouldn't have to do anything!)
Kill the pulseaudio subsystem before doing anything with Wine. Open system-monitor, go to the processes tab, highlight pulseaudio process and press "kill" (or something along those lines, I'm posting from work). Alternatively run this at the terminal:
killall -9 pulseaudio
Then open wine, do your thing and sound should work correctly. When your done, if you want pulseaudio back, press super+f2, typepulseaudio
, and hit enter.Alternatively, you can follow the instructions in this blog post to configure wine to use the OSS subsystem.