Games lose sound in Crossover

This information is outdated and should only be used on old versions of CrossOver and Linux. Please see our sound troubleshooting guide

Wine triggers a bug in older Pulseaudio versions (older than version 1.0) that cause games to lose sound. If your machine has up-to-date PulseAudio (PulseAudio >= 1.0 and alsa-plugins >= 1.0.24, which is libasound2-plugins on Ubuntu & co) the following information will not be useful to you.

This bug prevents Wine from interacting properly with the ALSA Compatibility plugin for PulseAudio. Therefore, Wine needs to access the audio device directly (bypassing PulseAudio), but cannot do so because PulseAudio has a "hold" on the audio device. The solution is to suspend PulseAudio's hold on the device so Wine can use it directly.

The workaround is to first open Wine Configuration (inside Crossover's Manage Bottles>Control Panel), head to the "Audio" tab and set both Output Device dropdowns to be the desired hardware device. This will have the format "Sound Card Name - Sound Device Name", for example, "HDA ATI SB - ALC889 Analog". If you are presented with both Analog and Digital options you will probably want the Analog device. Make sure to press OK in winecfg after selecting.

Next, Wine (and the windows game you're trying to run) needs to be run from pasuspender. This tool is a part of the "pulseaudio-utils" package and should already be present on your machine.

In the command-line, this looks like:

$ pasuspender -- /opt/cxoffice/bin/wine --bottle bottlename --cx-app launcher.exe

The above applies if you installed Crossover from the .rpm or .deb package. If you installed from the .bin, the command will look like this:

$ pasuspender -- ~/cxoffice/bin/wine --bottle bottlename --cx-app launcher.exe

Note that "bottlename" should be replaced with the name of the actual bottle (without the brackets), and "launcher.exe" should be replaced with the .exe file that launches the program.

Other sound-using applications will most likely not work while Wine is running. When Wine exits, the system's audio should go back to normal operation.
Last modified on 2015-06-29 14:58:17 by Caron Wills
Are you sure you want to delete this page?
Note: Any nested pages that are under this one will be moved up one level. Any attachments tied to this page will be deleted.
Move / Rename Page
Unknown Error, unable to move!
That page exists already!
One or more of the parent pages specified in new path do not exist!
/support/wiki/ /support/wiki/linux/faq/linuxgames_lose_sound
CodeWeavers or its third-party tools process personal data (e.g. browsing data or IP addresses) and use cookies or other identifiers, which are necessary for its functioning and required to achieve the purposes illustrated in our Privacy Policy. You accept the use of cookies or other identifiers by clicking the Acknowledge button.
Please Wait...