LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Sound trouble - only works with one app at a time (http://www.linuxquestions.org/questions/slackware-14/sound-trouble-only-works-with-one-app-at-a-time-119013/)

Zero-0-Effect 11-22-2003 08:45 PM

Sound trouble - only works with one app at a time
 
I just switched from RedHat 9 to slack 2 days ago. Ive ran into a problem with my sound. It seems that I can only run one application using sound at anyone time. If I try to run a second it will lock up until the other is exited out. ex: running xmms and some1 messages me I wont hear beep from the message until the songs have stoped.

running slackware 9.1 with fluxbox 0.1.14 kernel 2.4.22
im using the alsa drivers for sound. Dont know the command that would tell me what the exact driver version is being used for sound
Any help is appreciated.


I would like to have sounds from system events comethrough while say xmms is playing. In RH it does and winblows as well, This is the first time I've seen where only one audio application could be used at one time.

320mb 11-22-2003 09:20 PM

open a term window and type.....cat /proc/modules
this will show what sound driver is loaded up!!
and your video driver if your interested

Zero-0-Effect 11-23-2003 12:00 AM

Thanks 320mb.
Heres the output of cat /proc/modules


Code:

root@Slackbox:~# cat /proc/modules
snd-pcm-oss            37252  0 (unused)
snd-mixer-oss          11992  0 [snd-pcm-oss]
parport_pc            14724  1 (autoclean)
lp                      6752  0 (autoclean)
parport                23264  1 (autoclean) [parport_pc lp]
uhci                  24496  0 (unused)
ehci-hcd              16872  0 (unused)
usbcore                58400  1 [uhci ehci-hcd]
snd-intel8x0          17156  0
snd-pcm                55904  0 [snd-pcm-oss snd-intel8x0]
snd-timer              13252  0 [snd-pcm]
snd-ac97-codec        37240  0 [snd-intel8x0]
snd-page-alloc          6004  0 [snd-intel8x0 snd-pcm]
snd-mpu401-uart        3136  0 [snd-intel8x0]
snd-rawmidi            12512  0 [snd-mpu401-uart]
snd-seq-device          3920  0 [snd-rawmidi]
snd                    27460  0 [snd-pcm-oss snd-mixer-oss snd-intel8x0 snd-pcm  snd-timer snd-ac97-codec snd-mpu401-uart snd-rawmidi snd-seq-device]
soundcore              3332  4 [snd]
pcmcia_core            40032  0
ide-scsi                9424  0
8139too                15240  1
mii                    2304  0 [8139too]
crc32                  2880  0 [8139too]
agpgart                39576  0 (unused)
root@Slackbox:~#


Nis 11-24-2003 12:10 PM

It sounds like your sound card doesn't have hardware mixing (sorry about the pun :) Either you'll have to get a new soundcard with hardware mixing or use a sound daemon that can do mixing in software. ESD, arts, and others can do this mixing for you. If your using GNOME you'll want ESD and KDE uses arts. Hope this helps.

Zero-0-Effect 11-24-2003 11:43 PM

Know for a fact that the soundcard has hardware mixing.. Multiple programs in windows and RH could use it at the same time.. and it's a onboard 6.1 surround. Im not concerend with getting the full 6.1 surround working through the digital outs or anything. Ill try what you suggested with the ESD and arts, though thier is alsamixer. I let you know what happens.

*Running FluxBox 0.1.14*

dopefish 11-25-2003 01:38 AM

I had the same problem with slackware 8.1 and alsa 0.9rc6 ive got alsa 0.9.8 drivers now and it works fine. Only difference that i can remember aside from updated drivers is in my /etc/modules.conf ive got an extra sequencer service running.

Zero-0-Effect 11-25-2003 02:24 AM

Could you possibly post that file for me so that I could edit mine to possibly add that service to see if it might fix the problem? Or you can email it to me at joshshelton@sbcglobal.net
Thx dopefish!

*Taking a look at that file you specified..... mines empty.. LOL*

dopefish 11-25-2003 08:32 AM

#ALSA portion
alias char-major-116 snd
alias snd-card-0 snd-via82xx

#OSS/Free Portion
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0

#card 1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss

replace via-82xx with ur own sound card module, hope this helps

Tarts 11-25-2003 02:25 PM

Execute 'alsamixer', and crank up the volume on the pc speaker, that will solve your problem. 'man alsamixer' or 'man amixer'.

Tarts

Zero-0-Effect 11-25-2003 04:43 PM

#ALSA portion
alias char-major-116 snd
alias snd-card-0 snd-intel8x0


#OSS/Free Portion
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0

#card 1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss



After adding those lines to /etc/modules.conf.. still cant have 2 sound apps running at same time. I reposted the cat /proc/modules becuase I was unable to edit the post and some of these settings have changed.


Code:

bash-2.05b# cat /proc/modules
snd-pcm-oss            37252  0
snd-mixer-oss          11992  0 [snd-pcm-oss]
parport_pc            14724  1 (autoclean)
lp                      6752  0 (autoclean)
parport                23264  1 (autoclean) [parport_pc lp]
uhci                  24496  0 (unused)
ehci-hcd              16872  0 (unused)
usbcore                58400  1 [uhci ehci-hcd]
snd-intel8x0          17156  0
snd-pcm                55904  0 [snd-pcm-oss snd-intel8x0]
snd-timer              13252  0 [snd-pcm]
snd-ac97-codec        37240  0 [snd-intel8x0]
snd-page-alloc          6004  0 [snd-intel8x0 snd-pcm]
snd-mpu401-uart        3136  0 [snd-intel8x0]
snd-rawmidi            12512  0 [snd-mpu401-uart]
snd-seq-device          3920  0 [snd-rawmidi]
snd                    27460  0 [snd-pcm-oss snd-mixer-oss snd-intel8x0 snd-pcm snd-timer snd-ac97-codec snd-mpu401-uart snd-rawmidi snd-seq-device]
soundcore              3332  4 [snd]
pcmcia_core            40032  0
ide-scsi                9424  0
8139too                15240  1
mii                    2304  0 [8139too]
crc32                  2880  0 [8139too]
agpgart                39576  0 (unused)


Zero-0-Effect 11-27-2003 02:12 AM

Ok Now im really puzzled by this problem...

I just installed the ati.2, ffmpeg and avview.
I can listen to the tv while listening to xmms or any other application that uses sound.
But still if I run two applications other than one being avview It still will not load the second one becuase of the sound is already being used.

How is avview be able to play with xmms but not any other app?
After looking at the config it seems avview is using another sound device other than alsa drivers, any way to see what device its useing and set others to use the same?


All times are GMT -5. The time now is 11:06 AM.