You are not logged in.

#1 2015-06-25 19:18:02

Phalkon
Member
Registered: 2014-10-19
Posts: 117

alsa underrun

Hi,
this problem of mine is giving me headaches. smile

wine application (Oblivion GOTY edition) doesn't work well with wine and alsa in Arch. I don't have this problem in other OSes.

wine version: 1.7.45-1
Kernel: 4.0.6-1-ARCH

Terminal output:

Wine cannot find the ncurses library (libncursesw.so.5).
ALSA lib dlmisc.c:254:(snd1_dlobj_cache_get) Cannot open shared library /usr/lib32/alsa-lib/libasound_module_pcm_pulse.so
ALSA lib dlmisc.c:254:(snd1_dlobj_cache_get) Cannot open shared library /usr/lib32/alsa-lib/libasound_module_pcm_pulse.so
ALSA lib pcm.c:7905:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:7905:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:7905:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:7905:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:7905:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:7905:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:7905:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:7905:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:7905:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:7905:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:7905:(snd_pcm_recover) underrun occurred

The sound is distorted and the whole game is lagging so much that it's virtually unplayable.
When I disable the sound, however, the game is running without problems.

the library is in place

locate libasound_module_pcm_pulse.so
/usr/lib/alsa-lib/libasound_module_pcm_pulse.so
/usr/lib32/alsa-lib/libasound_module_pcm_pulse.so

Let me know how should I investigate further.

Thanks in advance for any help.

---------------
Installed alsa pkgs:

pacman -Qs alsa
local/alsa-firmware 1.0.29-1
    ALSA firmware package
local/alsa-lib 1.0.29-1
    An alternative implementation of Linux sound support
local/alsa-plugins 1.0.29-2
    Extra alsa plugins
local/alsa-utils 1.0.29-1
    An alternative implementation of Linux sound support
local/lib32-alsa-lib 1.0.29-1
    An alternative implementation of Linux sound support (32 bit)
local/lib32-alsa-plugins 1.0.29-2
    Extra alsa plugins (32-bit)
local/pulseaudio-alsa 2-3
    ALSA Configuration for PulseAudio
local/zita-alsa-pcmi 0.2.0-2
    The successor of clalsadrv, provides easy access to ALSA PCM devices.

Installed pulseaudio pkgs:

pacman -Qs pulseaudio
local/libcanberra-pulse 0.30-5
    PulseAudio plugin for libcanberra
local/pavucontrol 3.0-1
    A GTK volume control for PulseAudio
local/pulseaudio 6.0-2
    A featureful, general-purpose sound server
local/pulseaudio-alsa 2-3
    ALSA Configuration for PulseAudio

Last edited by Phalkon (2015-06-25 19:21:26)


Why Linux? Because it doesn't hide anything from you. It puts you so closely in control of your machine that you can feel its heartbeat.

Offline

#2 2015-06-25 20:15:25

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: alsa underrun

Don't use "locate" - it doesn't necessarily show what's on your filesystem *now*.

Better:

ls -l /usr/lib32/alsa-lib/

Offline

#3 2015-06-25 20:50:32

Malkymder
Member
Registered: 2015-05-13
Posts: 258

Re: alsa underrun

what does

pacman -Qs ncurses
pacman -Qs lib32-libpulse
pacman -Qs lib32-alsa-plugins

show

Last edited by Malkymder (2015-06-25 21:06:32)

Offline

#4 2015-06-25 21:30:25

Phalkon
Member
Registered: 2014-10-19
Posts: 117

Re: alsa underrun

ls -l /usr/lib32/alsa-lib/
total 228
-rwxr-xr-x 1 root root  5464 Mar 25 20:21 libasound_module_conf_pulse.so
-rwxr-xr-x 1 root root 26456 Mar 25 20:21 libasound_module_ctl_arcam_av.so
-rwxr-xr-x 1 root root 13976 Mar 25 20:21 libasound_module_ctl_oss.so
-rwxr-xr-x 1 root root 22152 Mar 25 20:21 libasound_module_ctl_pulse.so
-rwxr-xr-x 1 root root 14032 Mar 25 20:21 libasound_module_pcm_jack.so
-rwxr-xr-x 1 root root 13820 Mar 25 20:21 libasound_module_pcm_oss.so
-rwxr-xr-x 1 root root 30420 Mar 25 20:21 libasound_module_pcm_pulse.so
-rwxr-xr-x 1 root root  9720 Mar 25 20:21 libasound_module_pcm_speex.so
-rwxr-xr-x 1 root root 18228 Mar 25 20:21 libasound_module_pcm_upmix.so
-rwxr-xr-x 1 root root 14096 Mar 25 20:21 libasound_module_pcm_usb_stream.so
-rwxr-xr-x 1 root root  9692 Mar 25 20:21 libasound_module_pcm_vdownmix.so
lrwxrwxrwx 1 root root    35 Mar 25 20:21 libasound_module_rate_samplerate_best.so -> libasound_module_rate_samplerate.so
lrwxrwxrwx 1 root root    35 Mar 25 20:21 libasound_module_rate_samplerate_linear.so -> libasound_module_rate_samplerate.so
lrwxrwxrwx 1 root root    35 Mar 25 20:21 libasound_module_rate_samplerate_medium.so -> libasound_module_rate_samplerate.so
lrwxrwxrwx 1 root root    35 Mar 25 20:21 libasound_module_rate_samplerate_order.so -> libasound_module_rate_samplerate.so
-rwxr-xr-x 1 root root  9680 Mar 25 20:21 libasound_module_rate_samplerate.so
lrwxrwxrwx 1 root root    34 Mar 25 20:21 libasound_module_rate_speexrate_best.so -> libasound_module_rate_speexrate.so
lrwxrwxrwx 1 root root    34 Mar 25 20:21 libasound_module_rate_speexrate_medium.so -> libasound_module_rate_speexrate.so
-rwxr-xr-x 1 root root  9680 Mar 25 20:21 libasound_module_rate_speexrate.so
drwxr-xr-x 2 root root  4096 Mar 15 13:19 smixer
pacman -Qs ncurses
local/ncurses 5.9-7
    System V Release 4.0 curses emulation library

pacman -Qs lib32-libpulse

pacman -Qs lib32-alsa-plugins
local/lib32-alsa-plugins 1.0.29-2
    Extra alsa plugins (32-bit)

After installing lib32-libpulse, the error with opening shared library disappeared, but underruns still occur.
I noticed that these errors sometimes occured in other applications, but never had any significant effect.

Wine cannot find the ncurses library (libncursesw.so.5).
ALSA lib pcm.c:7905:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:7905:(snd_pcm_recover) underrun occurred

Why Linux? Because it doesn't hide anything from you. It puts you so closely in control of your machine that you can feel its heartbeat.

Offline

#5 2015-06-25 21:46:54

Malkymder
Member
Registered: 2015-05-13
Posts: 258

Re: alsa underrun

install lib32-libpulse

sudo pacman -S lib32-libpulse

edit: did not notice you mentioned installing it wink

pulseaudio --kill

Last edited by Malkymder (2015-06-25 21:52:26)

Offline

#6 2015-06-30 14:39:49

Phalkon
Member
Registered: 2014-10-19
Posts: 117

Re: alsa underrun

Malkymder wrote:
pulseaudio --kill
pulseaudio --kill

doesn't help. It seems though that it stopped showing the underrun error, but I cannot be sure because the error doesn't show very often now. But the problems are still the same.


Why Linux? Because it doesn't hide anything from you. It puts you so closely in control of your machine that you can feel its heartbeat.

Offline

#7 2015-06-30 15:25:46

Malkymder
Member
Registered: 2015-05-13
Posts: 258

Re: alsa underrun

If it comes up again you can always try what this post suggests https://bbs.archlinux.org/viewtopic.php?id=185736

or run your program preceding it with

env PULSE_LATENCY_MSEC=30 wine.... 

Offline

#8 2015-06-30 16:29:26

Phalkon
Member
Registered: 2014-10-19
Posts: 117

Re: alsa underrun

Malkymder wrote:

If it comes up again you can always try what this post suggests https://bbs.archlinux.org/viewtopic.php?id=185736

or run your program preceding it with

env PULSE_LATENCY_MSEC=30 wine.... 

Didn't help.
Also

Faeris wrote:

I get a very very bad sound and many errors in the terminal (every 200ms)

, which is quote from the topic you linked, isn't my problem. I don't get a lot of these error messages (I did at first, but I guess installation of the additional packages solved this (mostly smile )). Sometimes there are none in the terminal, yet the problems still occur. I think it might have nothing to do with the underrun and those error messages are just a coincidence. But I might be wrong.

I guess my only clue right know is that the problems disappear when I disable sound in the game.

The distortion of the sound, however, does sound like an underrun. It wouldn't be so bad if it didn't lag the whole game.
Not all the sound cause this effect however. It typicaly happens when someone is talking, but not always and not exclusively. I gather it's not a good lead.

If you have some tips how to investigate further, I'd be glad to hear them. Thx for the help so far. smile


Why Linux? Because it doesn't hide anything from you. It puts you so closely in control of your machine that you can feel its heartbeat.

Offline

Board footer

Powered by FluxBB