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 07-01-2010, 09:02 PM   #1
hedron
Member
 
Registered: Jul 2009
Location: NYC
Distribution: Slackware, Bluewhite
Posts: 241

Rep: Reputation: 23
Audio only with one program - asoundrc's "opaqueness"


Ok, I can only get sound with one program at a time. Either amarok or firefox or whatever, but not at the same time. It's rather irritating to have to close half my apps trying to figure out which is causing it or not. I have attempted to create an .asoundrc file, but have been unsuccessful as all the guides I have found for it are very opaque and it seems they are intended to use .asoundrc for other purposes.

My question is, is there a guide that explains how to route sound to the sound card to allow more than one application to use it at the same time?
 
Old 07-01-2010, 09:16 PM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 7,515

Rep: Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872
Does it still happen if you don't use KDE or any KDE apps?

I'm asking because I've had this problem or a similar one, and in my case it seemed to be KDE-specific:

http://www.linuxquestions.org/questi...stream-799674/
 
Old 07-01-2010, 09:18 PM   #3
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: pclinuxos slackware64 tails kali
Posts: 3,372
Blog Entries: 33

Rep: Reputation: 217Reputation: 217Reputation: 217
Hi, there is an alsa script you can run to see

what is and is not available to the alsa system.

You can find it here.

http://git.alsa-project.org/?p=alsa-...s/alsa-info.sh

When you run it, type --help for options, like no upload, no check for update, where to save file, etc.

I use kde4, and with that 'pulse audio' is the main mixer of program sounds.

Regards Glenn
 
Old 07-02-2010, 01:11 AM   #4
hedron
Member
 
Registered: Jul 2009
Location: NYC
Distribution: Slackware, Bluewhite
Posts: 241

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by dugan View Post
Does it still happen if you don't use KDE or any KDE apps?
Well, the issue really only came up when I started playing Return to Castle Wolfenstein. I don't really know what happened. Maybe something about this command: "echo 'wolfsp.x86 0 0 direct' > /proc/asound/card0/pcm0p/oss"? Also, virtual box has never reliably outputted sound. It has at times, but I never really bothered to diagnose it as I only use it for one app that doesn't need sound.

Here's the output of alsa-info: http://pastebin.com/U8F5sW4M Everything looks in order to me.

Anyone know where I can find a 64 bit Pulse Audio slackware package? I suppose I'll attempt compiling it. I've tried in the past, but it has so many deps that either it doesn't work or I just give up in exhaustion from installing dep after dep.
 
Old 07-02-2010, 01:17 AM   #5
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 7,515

Rep: Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872
Quote:
Originally Posted by hedron View Post
My question is, is there a guide that explains how to route sound to the sound card to allow more than one application to use it at the same time?
I'm pretty sure this is the complete Howto:

http://www.linuxquestions.org/questi...2/#post3709996

Summary: all you should have to do is make sure every app is playing sound through ALSA and not OSS.

Last edited by dugan; 07-02-2010 at 01:22 AM.
 
Old 07-02-2010, 02:10 AM   #6
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,366

Rep: Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835
You are using OSS (or ALSA's OSS compatibility) for Return to Castle Wolfenstein. This locks up the sound card and you will not be able to play other sound...it is preferable to use alsa for everything if possible. If you can get your game to output to alsa then the problem will likely be solved, but if not you may need to direct output to a sound server (which in turn outputs to alsa). My favourite was actually arts but I don't think that's too relevant anymore, and I don't know anything about phonon in KDE4. pulse will probably work...I just don't particularly like it myself. This page suggests a possible hack...but I can't vouche for it, not having played the game myself.
 
Old 07-02-2010, 02:48 AM   #7
hedron
Member
 
Registered: Jul 2009
Location: NYC
Distribution: Slackware, Bluewhite
Posts: 241

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by dugan View Post
Summary: all you should have to do is make sure every app is playing sound through ALSA and not OSS.
Hmm... Yea, it seems wolfenstein wants to use /dev/dsp which if I'm not mistaken what oss uses and alsa doesn't. I tried changing to /dev/snd/pcmC0D0p, since that's what amarok seems to use, but no luck.
 
  


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
Program to "assemble" still-frame pictures into "animated" show Pantherman Linux - General 3 12-24-2009 11:14 PM
hard drives come up "no partition table" and "in use by another program" marti972 Linux - Newbie 3 03-16-2009 11:44 PM
LXer: Displaying "MyComputer", "Trash", "Network Servers" Icons On A GNOME Desktop LXer Syndicated Linux News 0 04-02-2007 08:31 AM
k3b: "error decoding audio tracks" and "could not unlock cd driver" lefty.crupps Linux - Software 7 10-13-2005 11:29 AM
Getting error: "ALSA device "default" is already in use by another program." brynjarh Debian 7 02-04-2005 11:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration