LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware audio problem (https://www.linuxquestions.org/questions/slackware-14/slackware-audio-problem-385860/)

malodemickey 11-23-2005 11:46 AM

Slackware audio problem
 
Hi, I just erased everything and installed slackware 10.2. I have a problem with my audio, It works fine, but it seems that only one program can use the soundcard at one time. For example, if i'm using xmms, gaim doesn't make any sounds. And also, when I reboot, my volume settings (PCM, Master, etc) reset to 0. Any ideas? My soundcard is an integrated AC'97
Thanks in advance.

Finlay 11-23-2005 12:01 PM

have you run
alsamixer
set the volumes, then run
alsactl store

keefaz 11-23-2005 12:02 PM

Create ~/.asoundrc with the content :
Code:

pcm.!default {
        type plug
        slave.pcm "swmixer"
}

pcm.swmixer {
        type dmix
        ipc_key 1234
        slave {
                pcm "hw:0,0"
                period_time 0
                period_size 1024
                buffer_size 4096
                rate 44100
        }
}

You could change rate to 48000 depending on your hardware

Finlay 11-23-2005 12:05 PM

keefaz
what will that file do?

malodemickey 11-23-2005 01:25 PM

Thanks, I'll try both suggestions tonight when I get home. But as keefaz said, it would be nice to know what that file does.

npn 11-23-2005 01:30 PM

Additionally, artsd will interfere too. In KDE go to the (kcontrol) Control Center->Sound and Multimedia and find the control that says something like "disable artsd after so many seconds". The default is 60, set to 5.
Sorry I can't be more specific, I'm at work (no linux).

Finlay 11-23-2005 01:32 PM

Scandalous, no linux at work....speechless!!

malodemickey 11-23-2005 01:40 PM

I don't have kde installed, I installed dropline gnome. Is there another way to do that from the command line or within gnome? Perhaps I don't have arts installed (It comes with kde doesn't it?)

keefaz 11-23-2005 01:59 PM

Quote:

Originally posted by Finlay
keefaz
what will that file do?

This file enables some alsa settings for the sound card

Here it is supposed to enable the dmix plugin which is capable to
receive multiple audio flux sent by the applications and mix them
to the sound card

more infos :
http://alsa.opensrc.org/.asoundrc
http://linux.com.hk/PenguinWeb/manpa...undrc.template
http://www.linuxjournal.com/comment/reply/7391

Finlay 11-23-2005 02:02 PM

interesting
how do i tell what rate my card runs at?

keefaz 11-23-2005 02:05 PM

Take a look at /proc/asound/card0/codec97#0/ac97#0-0
(or at least navigate into /proc/asound/card0 and try to grab some
infos from here)

Finlay 11-23-2005 04:30 PM

ok mine says 48k
so would that be 48000 or 49152

dive 11-23-2005 04:37 PM

48000 i believe

but thats probably the max it can go - i think most cards use 44100 as default(?)

malodemickey 11-23-2005 10:01 PM

So I finally got home... alsamixer and alsactl store solved the first problem, thanks :).
But I did what keefaz said, then rebooted and my soundcard still can't be accessed by more than one program. :confused:

gbonvehi 11-23-2005 10:02 PM

malodemickey, did you placed that file on the home of your current user (the one running the programs with sound)? Remember ~ means home folder, like /home/user.


All times are GMT -5. The time now is 10:10 PM.