LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   ALSA sound only working with one application at a time (http://www.linuxquestions.org/questions/linux-software-2/alsa-sound-only-working-with-one-application-at-a-time-202571/)

squat001 07-08-2004 08:46 AM

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?

Geremia 03-01-2013 10:29 AM

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.

Geremia 05-08-2013 07:27 PM

No one else here has this issue?

dugan 05-08-2013 08:06 PM

Quote:

Originally Posted by Geremia (Post 4947503)
No one else here has this issue?

Assuming you're using Slackware:

http://www.linuxquestions.org/questi...0/#post4929576

Geremia 05-09-2013 04:30 PM

Quote:

Originally Posted by dugan (Post 4947514)

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.

kingbeowulf 05-12-2013 01:58 AM

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


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