LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-21-2005, 10:58 AM   #1
Synesthesia
Member
 
Registered: Jan 2004
Location: the abyss
Posts: 209

Rep: Reputation: 30
Necessity of OSS+ALSA, and Program conflictions


Why is it necessary to have apps use both OSS and ALSA?
I need a sound configuration that works for everything. I don't know if there is a confliction problem or what, but when I first start xmms and then a game, I get no sound. When I start the game and then xmms, xmms says something like "the sound divice is in use". Is there an easy fix for these problems? Thanks for any advice.
 
Old 05-21-2005, 11:09 AM   #2
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 48
Createa a file in your home directory called .asoundrc, with the following contents:

Quote:
pcm.dmixer {
type dmix
ipc_key 1024
slave {
pcm "hw:0,0"
period_time 0
period_size 1024
buffer_size 8192
rate 44100
}

bindings {
0 0
1 1
}
}

pcm.dsp0 {
type plug
slave.pcm "dmixer"
}

pcm.!default {
type plug
slave.pcm "dmixer"
}

pcm.default {
type plug
slave.pcm "dmixer"
}

ctl.mixer0 {
type hw
card 0
}
This tells Alsa to share - i.e. it means that more than one app. at a time can use Alsa.

Then, tell every app. that uses sound, to use Alsa. Problem should be solved.
 
  


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
ALSA-oss compatability works, but not programs intended for alsa ? qwijibow Linux - Software 5 03-14-2004 07:28 AM
make an alsa program use OSS output ? qwijibow Linux - Software 9 03-09-2004 07:45 AM
how do i know if its OSS or ALSA? sirpelidor Linux - Newbie 5 02-08-2004 02:27 AM
alsa or oss chii-chan Linux - Newbie 2 01-18-2004 09:23 PM
Am I using OSS or ALSA?? zoomzoom Linux - Hardware 1 12-24-2003 08:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:52 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
Open Source Consulting | Domain Registration