LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 09-05-2006, 09:50 AM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Debian
Posts: 2,896

Rep: Reputation: 73
Troubleshooting Sound


OK - My Debian Linux machine is perfect with one exception...audio/sound. I use "Audio" for 3 reasons.

- Firefox (sites like Purevolume.com and Youtube.com)
- XMMS (My audio player of choice)
- Games (I play UT2K4 & Doom3 a lot)

Now what I don't understand is why in Linux, two app's can't have sound at the same time. In XP, I can have many app's all streaming audio with no problem. Regaurdless, I don't even care that this is possible in Linux, I am just now not able to have any audio from Firefox or XMMS and have no clue how to troubleshoot something like this. Audio has always worked fine but now when I go to start XMMS, Firefox just sits there and is mute. I can close out XMMS completely & Youtube.com still has no audio for at least an hour, then something on my system releases the audio and it works...I just don't think waiting an hour is reasonable.

Any suggestions?
 
Old 09-05-2006, 11:15 AM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Use ALSA instead of OSS. I have no trouble playing music and video at the same time (not that I want to) because ALSA can do that. At the moment the problem is sites like Youtube use flash to play the videos and flash 7 uses OSS. That should be fixed in flash 9, whenever that is released
 
Old 09-05-2006, 11:44 AM   #3
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,194

Rep: Reputation: 159Reputation: 159
As you already figured out, your sound mixer is blocking your soundsystem.
See if can kill it by doing:
Code:
killall -9 esd
(if esd is what you're using)
I'm not sure why it does work after an hour.

Flash never really worked that well for me using ALSA.
Instead, I use ALSA's OSS emulation.
To enable it type:
Code:
modprobe snd_pcm_oss
Multi-Sound streams:
ALSA also has its mixer for multiple sound streams (dmix).
I find it much easier to configure than all the other ones.
Here's a good guide to configure it:
http://alsa.opensrc.org/index.php?page=DmixPlugin
(notice you'll need to configure your apps as well for it)

Doing the above I have no problems playing any app at the same time (as for as I know).

Jens.

Last edited by jens; 09-05-2006 at 06:05 PM.
 
Old 09-05-2006, 12:20 PM   #4
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Debian
Posts: 2,896

Original Poster
Rep: Reputation: 73
Yes,

Code:
killall -9 esd
seems to free up so I can hear sound now for the 1st time in UT2004. I have never heard any sound from this game until now.

I did not know that any audio streamed via Flash7 is via OSS. I wish Macromedia would support the Linux community a bit more. We'll see when Flash 9 is released.

Thanks for your help guys!
 
Old 09-05-2006, 01:03 PM   #5
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,194

Rep: Reputation: 159Reputation: 159
Quote:
Originally Posted by Carlwill
Yes,

Code:
killall -9 esd
seems to free up so I can hear sound now for the 1st time in UT2004.
Do you get good sound in UT2004 using ALSA?
That actually never worked for me (I only get blurry sound).
You normally need to force it to use OSS emulation(same thing for DOOM3 and QUAKE4):
*first run "modprobe snd_pcm_oss"
*start it like this:
Code:
ut2004-demo +set s_driver oss
(from now it will remember to keep using it)

PS: Dmix is really a very easy way to get multi sound streams.

Last edited by jens; 09-05-2006 at 01:04 PM.
 
Old 09-06-2006, 09:38 AM   #6
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Debian
Posts: 2,896

Original Poster
Rep: Reputation: 73
Ok - I don't mean to sound ignorant but I have no idea if UT2004 is using OSS or ALSA. How can I verify which sound operation the game is using. How can I determine this...I have not really tried sound yet in UT2004, I just started the game and heard sound effects during the intro...

Code:
modprobe snd_pcm_oss
If I run the above command, can you explain what that is doing?
 
Old 09-06-2006, 09:48 AM   #7
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,194

Rep: Reputation: 159Reputation: 159
It's supposed to work for both. Using ALSA, the sound is very blurry though.
"+set s_driver oss" forces it to use OSS (or OSS emulation) and will remember to keep doing so.

"snd_pcm_oss" loads kernel OSS emulation provided by ALSA.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Basic Sound troubleshooting steps? penguinlnx Linux - Software 3 03-16-2005 12:49 AM
troubleshooting how-to? chilehead Linux - Hardware 2 02-06-2005 04:58 PM
Sound troubleshooting in 10.1 matsgl Mandriva 12 12-18-2004 01:36 PM
sound drivers not working-need help troubleshooting bcf2 Mandriva 3 11-30-2004 08:00 PM
Aureal sound card troubleshooting privateprimate Linux - Hardware 0 06-25-2004 12:56 AM


All times are GMT -5. The time now is 05:25 PM.

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