Horribly broken sound with games under WINE

Every time I run any game under wine at all all the sound is a garbled mess. I’ve tested it with multiple games that should work fairly easily(Victoria 2, Company of Heroes, EYE: Divine Cybermancy). They all suffer from the same problem. All their sound is broken entirely. And in the case of Company of heroes it seems as if it causes the intro videos to play extra fast. I’ve tried changing output devices in the audio tab of winecfg, but it doesn’t seem to change anything or even display the output I use so I just leave it on default. Every time I use the test sound button of winecfg it throws out several of these errors while making fun garbled sound:

ALSA lib pcm.c:7897:(snd_pcm_recover) underrun occurred


Victoria 2 also throws this out like crazy when the game is running as I run it from terminal to run it with mods enabled. So I suspect my problem is related to this. Any help? I tried changing the buffer size as mentioned in this thread(https://bbs.archlinux.org/viewtopic.php?id=185736) but it didn’t seem to help anything. I also just noticed during writing this that when any other background sound(music) is running when I run the game, it actually causes the background sound to become static-y.

Oh and I’m running WINE 1.7.52-486.1 that I installed from yast.

And what errors do you get when you start a game from terminal with “wine <>.exe” ?

Installed via YaST? That does not help wrt telling us the source of your wine app. One can install apps from may locations via YaST.

My understanding is openSUSE is nominally packaged with wine-1.7.28. You do not have that. So you are not using a version of wine that nominally comes with openSUSE-13.2 from what I read.

This reads like you obtained wine from a different repository other than ‘OSS’ … ie possibly


http://download.opensuse.org/repositories/Emulators:/Wine/openSUSE_13.2/ 

in which case its quite possible the version of wine you are using does not get the testing with openSUSE that v. 1.7.28 gets and may (or may not) have problems…

Some further speculation - its possible pulse audio and wine are not playing well together. You could look at this wine guide wrt pulse audio: http://wiki.winehq.org/WineAndPulseaudio

and another wine sound guide is here: Sound - WineHQ Wiki

Per one of the above guides, you could try running wine with ‘pasuspender’ to see if pulse audio is causing the problem … ie something like:


pasuspender -- /path/to/wine 'C:\Program Files\My Favorite Application\Application.exe'

For example, say you have the program “mywinprogram.exe” located in /home/dylan/windows/mywinprogram.exe

Then you could test by trying something like:


pasuspender -- wine /home/dylan/windows/mywinprogram.exe

and if sound works fine there - then that would suggest this is a pulse audio configuration problem.