LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 11-22-2003, 07:45 PM   #1
Zero-0-Effect
Member
 
Registered: Sep 2002
Location: Texas
Distribution: SlackWare - Current LFS - CVS
Posts: 267

Rep: Reputation: 31
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.

Last edited by Zero-0-Effect; 11-23-2003 at 02:47 AM.
 
Old 11-22-2003, 08:20 PM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 47
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
 
Old 11-22-2003, 11:00 PM   #3
Zero-0-Effect
Member
 
Registered: Sep 2002
Location: Texas
Distribution: SlackWare - Current LFS - CVS
Posts: 267

Original Poster
Rep: Reputation: 31
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:~#
 
Old 11-24-2003, 11:10 AM   #4
Nis
Member
 
Registered: Jul 2003
Location: Virginia
Distribution: Ubuntu Hoary (5.04)
Posts: 550

Rep: Reputation: 31
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.
 
Old 11-24-2003, 10:43 PM   #5
Zero-0-Effect
Member
 
Registered: Sep 2002
Location: Texas
Distribution: SlackWare - Current LFS - CVS
Posts: 267

Original Poster
Rep: Reputation: 31
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*

Last edited by Zero-0-Effect; 11-24-2003 at 10:47 PM.
 
Old 11-25-2003, 12:38 AM   #6
dopefish
Member
 
Registered: Nov 2003
Location: Northcliffe, WA
Distribution: Slackware 12.0
Posts: 481

Rep: Reputation: 30
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.
 
Old 11-25-2003, 01:24 AM   #7
Zero-0-Effect
Member
 
Registered: Sep 2002
Location: Texas
Distribution: SlackWare - Current LFS - CVS
Posts: 267

Original Poster
Rep: Reputation: 31
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*

Last edited by Zero-0-Effect; 11-25-2003 at 01:58 AM.
 
Old 11-25-2003, 07:32 AM   #8
dopefish
Member
 
Registered: Nov 2003
Location: Northcliffe, WA
Distribution: Slackware 12.0
Posts: 481

Rep: Reputation: 30
#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
 
Old 11-25-2003, 01:25 PM   #9
Tarts
Member
 
Registered: Feb 2003
Distribution: Slackware 9.1 (exclusively) ;)
Posts: 344

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

Tarts

Last edited by Tarts; 11-25-2003 at 01:26 PM.
 
Old 11-25-2003, 03:43 PM   #10
Zero-0-Effect
Member
 
Registered: Sep 2002
Location: Texas
Distribution: SlackWare - Current LFS - CVS
Posts: 267

Original Poster
Rep: Reputation: 31
#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)
 
Old 11-27-2003, 01:12 AM   #11
Zero-0-Effect
Member
 
Registered: Sep 2002
Location: Texas
Distribution: SlackWare - Current LFS - CVS
Posts: 267

Original Poster
Rep: Reputation: 31
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sound only works with one application at a time cspos Linux - General 3 06-14-2005 03:06 AM
Sound only plays from one app at a time h8trix Linux - Hardware 4 05-31-2005 01:50 AM
sound works in only one account at a time Cinematography Mandriva 3 05-04-2005 10:34 PM
ALSA sound on more than one app at a time ElPuello Linux - Hardware 4 09-06-2004 05:25 AM
Slackware sound works only every other time, what the heck? bobthebat Linux - General 3 11-01-2001 07:29 PM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration