Audio in wine was working just fine until I updated to 1.3.33. Then I got the following errors over and over again in the command line.
Code:
err:mmdevapi:DllGetClassObject Driver initialization failed
err:ole:apartment_getclassobject DllGetClassObject returned error 0x80004005
err:ole:CoGetClassObject no class object {bcde0395-e52f-467c-8e3d-c4579291692e} could be created for context 0x1
err:dsound:devenum_thread_proc CoCreateInstance failed: 80004005
err:quartz:DSoundRender_create Cannot create Direct Sound object (80070057)
fixme:ole:CoCreateInstance no instance created for interface {56a86895-0ad4-11ce-b03a-0020af0ba770} of class {79376820-07d0-11cf-a24d-0020afd79767}, hres is 0x80070057
After trying lots of solutions from older wine versions, mostly involving making sure that various libraries and packages are installed, I finally had to come to the conclusion that some update to wine broke compatibility with pulse completely. Before anyone asks, yes I have wine-pulseaudio installed.
The solution for me was to tell wine to use alsa instead.
First, make sure wine-alsa is installed.
Code:
su
yum install wine-alsa
To tell wine to use alsa instead of pulse:
1. Open Regedit
2. Go to HKEY_CURRENT_USER/software/wine/drivers
3. Edit the Audio key so the value of the key is alsa, instead of pulse.
When you run a wine app, you will get audio errors. I haven't had any of them actually cause any problems though. IE: Audio still plays and is synchronous with game events.
II don't like this solution, as I can't have other audio playing in the background while playing games anymore. Hence I'll be switching back once the wine packages have updated again, provided the sound works again.