LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-08-2004, 09:46 AM   #1
squat001
LQ Newbie
 
Registered: Jul 2004
Location: UK
Distribution: lots
Posts: 9

Rep: Reputation: 0
Unhappy ALSA sound only working with one application at a time


Need some help!!

I have a C-Media 8738 sound card running on Fedora Core 2 (kernel 2.6.5) and every thing work fine other than i'm running a voice over IP app (TeamSpeak) which again works great but when it's running I don't get sound from any other application.

I have been told the following the any app i want to work with sound out after starting TeamSpeak:

type,

echo "<app name> 0 0 direct" > /proc/asound/card0/pcm0p/oss
echo "<app name> 0 0 disable" > /proc/asound/card0/pcm0c/oss

This should prevent the sound input and just enable sound out, however this make no difference.

Am i right in saying alsa sound drivers only allow a single process/appliction to captuer sound at any one time?
 
Old 03-01-2013, 11:29 AM   #2
Geremia
Member
 
Registered: Apr 2011
Distribution: Slackware 14.1
Posts: 241

Rep: Reputation: 5
I have this issue, too, ever since I updated to KDE 4.9 (I have 4.10 now). Only one application can play audio at a time.
 
Old 05-08-2013, 08:27 PM   #3
Geremia
Member
 
Registered: Apr 2011
Distribution: Slackware 14.1
Posts: 241

Rep: Reputation: 5
No one else here has this issue?
 
Old 05-08-2013, 09:06 PM   #4
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,976

Rep: Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555
Quote:
Originally Posted by Geremia View Post
No one else here has this issue?
Assuming you're using Slackware:

http://www.linuxquestions.org/questi...0/#post4929576
 
1 members found this post helpful.
Old 05-09-2013, 05:30 PM   #5
Geremia
Member
 
Registered: Apr 2011
Distribution: Slackware 14.1
Posts: 241

Rep: Reputation: 5
Quote:
Originally Posted by dugan View Post
Yes, I'm using Slackware, so I commented out all instances of load_alsa_oss_modules and this in rc.alsa:
Code:
# A function to load the ALSA OSS compat modules:                                                                             
# load_alsa_oss_modules() {                                                                                                   
#   if modprobe -c | tr _ - | grep -wq snd-pcm-oss ; then                                                                     
#     if ! cat /proc/modules | tr _ - | grep -wq snd-pcm-oss ; then                                                           
#       echo "Loading OSS compatibility modules for ALSA."                                                                    
#       modprobe snd-pcm-oss                                                                                                  
#       modprobe snd-seq-oss                                                                                                  
#       modprobe snd-mixer-oss                                                                                                
#     fi                                                                                                                      
#   fi                                                                                                                        
# }
Yet, I still can't mix multiple applications' sound together. (I've rebooted and everything.)

E.g., if I try playing audio in two difference instances of VLC, VLC gives me an error about how the "default" audio device cannot be used because the device or resource is busy.

Last edited by Geremia; 05-09-2013 at 05:51 PM.
 
Old 05-12-2013, 02:58 AM   #6
kingbeowulf
Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware64 14.1, Slackware 14.1
Posts: 526

Rep: Reputation: 140Reputation: 140
I regularly run games + Teamspeak or Mumble with no issues. Slackware64 14.0 with CL Audigy. I don't don't have a ~/.asoundrc, rc.alsa is untouched. I did have some goofiness since my Nvidia GPU has HDMI w/ audio so I blacklisted that module. I set alsamixer up, use 'alsactl store'
/etc/modprobe.d/sound.conf
Code:
alias snd-card-0 snd-emu10k1
alias sound-slot-0 snd-emu10k1
/etc/modprobe.conf/snd-hdmi.conf
Code:
# Don't load HDMI sound from the Nvidia GPU card
blacklist snd_hda_intel
The only "glitch" is that I have to start TS or Mumble after starting any WINE programs if I want TS and Mumble to have audio in/out during game audio (weird WINE issue).

You can use 'aplay -L' and 'speaker_test' to find/test the output channels. Also, audacity is a good tool to see what channels are doing what. You will need to check the links provided earlier in this thread for software mixing if your C-Media chip has trouble or can't perform hardware mixing by default (duplex and/or dmix) (Its been a long time since I used anything other that Soundblaster or Intel audio in Linux).

You may also want to check out this: http://alsa.opensrc.org/Cmipci
 
  


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
ALSA not working for Creative Sound Blaster Live 24 Bit sound card vishalsonu Linux - Hardware 7 08-20-2005 02:02 PM
ALSA, only one sound at a time Icetec Linux - Newbie 10 06-22-2005 04:29 AM
Sound only works with one application at a time cspos Linux - General 3 06-14-2005 04:06 AM
ALSA sound: One output at a time :( Erik Plaggenmar Linux - Software 4 10-09-2004 05:12 AM
ALSA sound on more than one app at a time ElPuello Linux - Hardware 4 09-06-2004 06:25 AM


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

Main Menu
Advertisement
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