You are not logged in.
Hello, I'm trying to make pulseaudio use dmix instead of grabbing the device as I'm trying to make a game (Torchlight 2, which requires direct alsa access) have sound. I have followed the steps from wiki: https://wiki.archlinux.org/index.php/Pu … figuration (The "ALSA/dmix without grabbing hardware device" part)
When trying to launch alsamixer with regular user I get this output:
zeadar@disarray~> alsamixer
ALSA lib conf.c:3750:(snd_config_update_r) Cannot access file /etc/alsa-pulse.conf
ALSA lib control.c:954:(snd_ctl_open_noupdate) Invalid CTL default
cannot open mixer: No such file or directoryAlthough alsamixer works when launching form root. When I try speaker-test -c 2 I get a similar output:
zeadar@disarray~> speaker-test -c 2
speaker-test 1.1.0
Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
ALSA lib conf.c:3750:(snd_config_update_r) Cannot access file /etc/alsa-pulse.conf
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM default
Playback open error: -2,No such file or directoryFrom root I get a different error:
root@disarray /h/zeadar# speaker-test -c 2
speaker-test 1.1.0
Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused
Playback open error: -111,Connection refusedMind zeadar is in audio group. Pulseaudio applications seem to "beleive" sound works (doesn't report any playback error and progressbar moves etc)
Any ideas?
/etc/pulse/default.pa http://pastie.org/private/nhi1jdjcfvikqz2ijgbaa
~/.asoundrc http://pastie.org/private/jitdjtvsdd4cqut3x47qoa
~/.asoundrc.asoundconf http://pastie.org/private/kmxriui01p6ibr4xgpvykw
I'm genrally not a linux noob but this is my first time tackling a sound configuration.
Thanks
Offline
You have totally the wrong idea about...perhaps everything.
First of all dmix is not a part of PulseAudio, it's a part of ALSA. By the way you can see that there a note on that sub-section:
Note: This section describes alternative configuration, which is generally not recommended.
If Torchlight supports PulseAudio, you do not need further configuration once it's running. If it doesn't, then you need to get pulseaudio-alsa in addition, which is actually an /etc/asound.conf that routes sound from program like that to PulseAudio with an alsa plugin, so the device won't be "grabbed" by dmix.
If you use pulseaudio-alsa, please get rid all of the .asoundrc-ish files in your $HOME, since they will probably do nothing but prevent the /etc/asound.conf from working as expected.
If you still get no sound with after you've fix the aforementioned things, try to run `pacmd list` with Torchlight running and post the FULL output here.
Last edited by tom.ty89 (2015-12-21 14:36:53)
Offline
You might also need to get lib32-libpulse and lib32-alsa-plugins since the game is likely 32-bit.
Offline
Alright, I've made the settings as instructed. Removed zeadar from audio group, made sure there is no .asound* in ~/. Installed pulseaudio-alsa, confirmed /etc/asoundrc exists. reinstalled lib32-libpulse and lib32-alsa-plugins as they were already installed (probably because skype requires them if I'm not misstaken). Reverted /etc/pulse/default.pa to original settings. Torchlight 2 still produces no sound and there is no playback entry in pavucontrol.
pacmd list: http://pastie.org/private/ip4z29ctui6yvldr7pda
Thank you for quick effort.
Offline
No /etc/asoundrc as well. There should only be /etc/asound.conf from pulseaudio-alsa, make sure it's not modified.
By the way have you ever got sound with Torchlight so far? Do you have sound from it if PulseAudio is not running?
Last edited by tom.ty89 (2015-12-21 16:49:16)
Offline