No Sound in Game

Questions about Wine on Linux
Locked
LordMord
Newbie
Newbie
Posts: 1
Joined: Fri Apr 04, 2014 10:50 pm

No Sound in Game

Post by LordMord »

Hello,

i just can't seem to get this to work. In the wine config 'winealsa.drv' is the Selected driver and the Test Sound button works. But ingame the sound doesn't work. (tested with different games)

I tried turning off pulseaudio completely but that didn't help.

I hope some off you can help me.

Arch Linux. Wine 1.7.15
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: No Sound in Game

Post by dimesio »

Post terminal output from one of the games.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: No Sound in Game

Post by Bob Wya »

@LordMord,

From Arch on my laptop...

Code: Select all

yaourt -Qs alsa ; yaourt -Qs openal
extra/alsa-lib 1.0.27.2-1
    An alternative implementation of Linux sound support
extra/alsa-plugins 1.0.27-2
    Extra alsa plugins
extra/alsa-tools 1.0.27-5
    Advanced tools for certain sound cards
local/alsamixergui 0.9.1-3
    FLTK based mixer program for use with ALSA.
extra/gnome-alsamixer 0.9.7-1
    Gnome ALSA mixer
multilib/lib32-alsa-lib 1.0.27.2-1
    An alternative implementation of Linux sound support (32 bit)
multilib/lib32-alsa-plugins 1.0.27-1
    Extra alsa plugins (32-bit)
extra/pulseaudio-alsa 2-2
    ALSA Configuration for PulseAudio
multilib/lib32-openal 1.15.1-1
    OpenAL audio library for use with opengl (32-bit)
extra/openal 1.15.1-1
    A cross-platform 3D audio library
That should be enough to get most game sound working in 32-bit or 64-bit Wineprefixes.

Bob

PS
If you get crackly/distorted sound, in Wine applications, then you will probably need to tune the pulseaudio audio sample sizes:
  • default-fragment-size-msec = ?
  • default-fragments = ?
This is an issue with newer versions of Pulseaudio (>=4.99).
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: No Sound in Game

Post by dimesio »

Bob Wya wrote: If you get crackly/distorted sound, in Wine applications, then you will probably need to tune the pulseaudio audio sample sizes:
  • default-fragment-size-msec = ?
  • default-fragments = ?
This is an issue with newer versions of Pulseaudio (>=4.99).
Huh? That issue has been around for over two years, in Pulseaudio versions going back even before 1.0. http://bugs.winehq.org/show_bug.cgi?id=28282
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: No Sound in Game

Post by Bob Wya »

dimesio wrote:
Bob Wya wrote: If you get crackly/distorted sound, in Wine applications, then you will probably need to tune the pulseaudio audio sample sizes:
  • default-fragment-size-msec = ?
  • default-fragments = ?
This is an issue with newer versions of Pulseaudio (>=4.99).
Huh? That issue has been around for over two years, in Pulseaudio versions going back even before 1.0. http://bugs.winehq.org/show_bug.cgi?id=28282
Well in my experience on 2 machines, 2 different USB wireless headsets, with both Gentoo & Arch, when I switched from Pulseaudio 4.01 to Pulseaudio >=4.99 my working sound simply stopped working very dramatically. I mean a dramatic jump from working to completely garbled. I then had to perform the tuning operation - or simply not get any sound with Wine + using Pulseaudio on either of the headsets. I am sure the issue has existed before - but Pulseaudio appears to be more sensitive to the issue now.

What about this Arch Forums thread? Note: I have not installed the POL package on either of my Arch installs - so the vanilla multilib Wine package must have been affected as well... Downgrading Pulseaudio to 4.01 or tuning the fragment size (for a unique sound device) resolved the situation completely in my case.

Just my $0.02

Bob
Locked