You are not logged in.

#1 2013-07-17 21:25:23

Roken
Member
From: South Wales, UK
Registered: 2012-01-16
Posts: 1,372

Alsa experts

Please feel free to move this if you feel it would be more appropriate in the H/W & Kernel section.

OK. For more than a year I've been battling to get the best out of my sound card. Whilst I had just two speakers, oss4 was my system of choice and worked just peachy. However, when I got a 5:1 speaker set, oss4 just wasn't playing ball to make the most of it. It worked just fine in stereo, but failed miserably at 5:1.

Before I go on, my config includes a creative X-Fi Audio, which is more of a glorified soundblaster than an X-Fi card, using the ca0106 chipset.

After (a lot) of experimenting and tweaking, I finally got it working with pulseaudio to sound just fine, before pulse crashed (which happened often and reliably). Despite  trying a hundred fixes from my googling experience, I could never fix it. Nothing in the logs, and no consistency to the pulse crashes. Whether it was flash movies or VLC and music, it could play for a day, or a minute, and then just died.

I eventually gave up and decided to go for the stable alsa, and I have it working, mostly. Having removed pulse, and set up an .asoundrc (finally using a config I found somewhere here on the forums) I can issue a

speaker-test -c 6

and all channels play.

But here are the issues. The config should use dmix and surround51, but I still get stuck with exclusive access by whatever happens to be playing.

My other issue (and believe it or not, it's a big one for me), is I play one game, and one game only. Trackmania in wine. It runs a treat, and was fine with surround audio with pulse, until pulse died. After removing pulse, I can't get so much as a peep out of TM. The game plays, but silently it's not half as much fun. the winecfg "test sound" gives me audio. I've checked my openal settings to ensure they are using the alsa driver, and I've tried reinstalling in a new prefix. I already have the al fixed libraries installed on my default prefix, but nothing I do can make it so much as beep.

Finally, whilst speaker-test proves all channels are working, using the test from http://dl.demo-world.eu/download_hd.php … .part1.rar (and part 2 if you want it) doesn't play all channels, either (vlc with dolby surround enabled). Everything plays, but only through left, centre and right.

My .asoundrc

pcm.dmixs51 {
  type dmix
  ipc_key 1024
  slave {
    pcm "hw:0,0"
    rate 48000
    channels 6
    period_time 0
    period_size 1024
    buffer_time 0
    buffer_size 4096
  }
}
pcm.!default {
  type plug
  slave.pcm "surround51"
}
pcm.duplicate {
  type plug
  slave.pcm "surround51"
  slave.channels 6
  route_policy duplicate
}

Now, I can do BASIC, COBOL, python, asm and some C(+). I can figure out lua and C++. I can call system libraries using BlitzBasic on Amiga, and I understand the UK tax system well enough to charge for my time. But hell, I can't figure out .asoundrc

Can anyone help?

Thank you.


Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus B550-F Gaming MB, 128Gb Corsair DDR4, Fractal Design Define 7 XL, 5 HD (2 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703

/ is the root of all problems.

Offline

#2 2013-07-17 21:59:53

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

Re: Alsa experts

Roken wrote:

slave.pcm "surround51"

dmix only mixes properly in stereo, surprisingly/sadly/confusingly. See config in my sig, for a setup that mixes properly with >2 speakers.

Offline

#3 2013-07-20 17:15:05

Roken
Member
From: South Wales, UK
Registered: 2012-01-16
Posts: 1,372

Re: Alsa experts

Thanks for the effort, but your .asounrc only gives me stereo sound. Centre, rear and sub are silent.

My config gives me true surround with:

speaker-test -c 6 -t wav

but the other problems remain sad

Last edited by Roken (2013-07-20 17:16:23)


Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus B550-F Gaming MB, 128Gb Corsair DDR4, Fractal Design Define 7 XL, 5 HD (2 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703

/ is the root of all problems.

Offline

Board footer

Powered by FluxBB