Fedora This forum is for the discussion of the Fedora Project. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
03-19-2005, 05:25 PM
|
#1
|
Member
Registered: Mar 2005
Location: New Jersey
Distribution: SuSE Professional 9.2
Posts: 31
Rep:
|
Is multi channel audio possible ?
I have an on-board Intel AC'97 soundcard... (Corp. 82801EB/ER ICH5/ICH5R AC'97 Audio Contoller to be exact...). Anyway, I figured out that if I turn down the PCM volume, my sound quality is better (clearer). However, I've noticed that while using XMMS, or any other music player, I can only get sound from that program. For example, if I am using XMMS to play music, the sounds on Gaim do not function. After searching through this forum and several others, I have come to the conclusion that this is due to the fact that I don't have multi channel sound. I have found no resolution for this issue, and was wondering if anyone knows of a way to set up multi channel sound. Is my only solution to use a better quality PCI soundcard instead of the on-board one? Thank you.
|
|
|
03-19-2005, 06:52 PM
|
#2
|
Member
Registered: Jan 2005
Location: Tasmania
Distribution: Xen Debian Lenny/Sid
Posts: 578
Rep:
|
---> 'if I turn down the PCM volume, my sound quality is better '
Sound quality for onboard audio is rarely ideal
---> 'I can only get sound from that program'
Can't help you here, however I remember seeing solutions for this in the forums.
There is apparently an easy way to add apps to a list that can share the audio.
---> 'I have come to the conclusion that this is due to the fact that I don't have multi channel sound'
I don't agree
---> 'Is my only solution to use a better quality PCI soundcard instead of the on-board one?'
This is not your problem, but should improve your sound quality.
|
|
|
03-20-2005, 12:05 PM
|
#3
|
Member
Registered: Jun 2003
Location: Southern US
Distribution: Ubuntu 5.10
Posts: 206
Rep:
|
i was thinking that your problem is not really "multi channel sound" per se. More, you are having problems with applications sharing the sound instead. There is a way (i refer up to ubernuts post) to have multiple programs all accessing the audio, but off the top of my head i dont recall what it was (not even sure if i have the same problem, as i hate desktop sounds personally...)
|
|
|
03-20-2005, 03:18 PM
|
#4
|
Member
Registered: May 2004
Location: South Carolina
Distribution: Slackware 11.0
Posts: 606
Rep:
|
if you are using alsa(you should be)
then create a ~/.asoundrc file that has the contents of:
pcm.card0 {
type hw
card 0
mmap_emulation true
}
pcm.!output {
type dmix
ipc_key 1234
ipc_key_add_uid 1
slave {
pcm "card0"
period_time 0
period_size 1024
buffer_size 32768
rate 48000
}
bindings {
0 0
1 1
}
}
#
# DSNOOP output device
#
pcm.!input {
type dsnoop
ipc_key 4321
ipc_key_add_uid 1
slave {
pcm "card0"
period_time 0
period_size 1024
rate 48000
}
}
#
# ASYM duplex device
#
pcm.!duplex {
type asym
playback.pcm "output"
capture.pcm "input"
}
#
# Make the duplex device default
#
pcm.!default {
type plug
slave.pcm "duplex"
}
#
# OSS Compability
pcm.!dsp0 {
type plug
slave.pcm "duplex"
}
ctl.!mixer0 {
type hw
card 0
}
then set everything to use alsa(in xmms right click, preferences, and you can switch from esd or oss to alsa)
and you should be able to play multiple alsa sounds at the same time.
|
|
|
03-20-2005, 06:42 PM
|
#5
|
Member
Registered: Mar 2005
Location: New Jersey
Distribution: SuSE Professional 9.2
Posts: 31
Original Poster
Rep:
|
Thanks liquid. I still have some questions for you, or anyone who can help. How do I go about creating this file ? Just make a new text document ? Also, after creating the file, where should it be placed ?
Last edited by mreinecker; 03-20-2005 at 06:45 PM.
|
|
|
03-21-2005, 12:47 AM
|
#6
|
Member
Registered: Jan 2005
Location: Tasmania
Distribution: Xen Debian Lenny/Sid
Posts: 578
Rep:
|
probably the easiest way is to open a terminal (eg. xterm or konsole), and use an editor like vi
eg:
vi ~/.asoundrc
(the preceding ~/ means the current user's home directory)
press "i" for insert
select the text above using your mouse (this automatically copies the selected text to your clipboard)
and the click the middle mouse button in the terminal window to paste the contents.
to save the file and exit, press
ESC :wq ENTER (5 separate keypresses)
to make sure the file has been created type
ls -la | grep asound
and to examine its contents try something like:
cat .asoundrc
or
less .asoundrc
|
|
|
03-21-2005, 02:08 AM
|
#7
|
LQ Newbie
Registered: Jan 2004
Location: Oklahoma
Distribution: Ubuntu
Posts: 27
Rep:
|
Quote:
Originally posted by liquidtenmilion
if you are using alsa(you should be)
then create a ~/.asoundrc file that has the contents of:
and you should be able to play multiple alsa sounds at the same time.
|
I just did this and solved a problem that has been annoying me forever. Why is something this easy not done automatically when installing ALSA?
Thanks...
|
|
|
03-21-2005, 02:24 PM
|
#8
|
Member
Registered: Mar 2005
Location: New Jersey
Distribution: SuSE Professional 9.2
Posts: 31
Original Poster
Rep:
|
How do I get gaim to use alsa sounds ?
|
|
|
03-21-2005, 06:15 PM
|
#9
|
Member
Registered: May 2004
Location: South Carolina
Distribution: Slackware 11.0
Posts: 606
Rep:
|
click on preferences, then sounds then you'll see sound method.
there click on command and type in aplay %s
|
|
|
03-22-2005, 04:39 PM
|
#10
|
Member
Registered: Jun 2003
Location: Southern US
Distribution: Ubuntu 5.10
Posts: 206
Rep:
|
lol rvqbl,
I never even thought about it before personally. after reading this thread I went and read the alsa documentation about using dmix, and after a bit of fiddling and whatnot, lo and blow holes, I can listen to mplayer, alsaplayer, xmms, and my own humming all at the same time! yeah!
funny how i didnt even think about it until someone else had the problem... Then it became an obsession to get it to work on my system.
however, I still cannot have music playing while I play quake3, which kinda sucks. anyone know if there is some way to have quake3 play nice with dmix so i can listen to music at the same time?
|
|
|
03-22-2005, 07:02 PM
|
#11
|
Member
Registered: May 2004
Location: South Carolina
Distribution: Slackware 11.0
Posts: 606
Rep:
|
Oss programs have problems with dmix(mainly, dmix doesn't affect it)
You can try it by using *aoss quake3command*(note type in the command for quake 3 which i don't know not actually quake3command)
but that might not work. If it does they YAY!!!(install the package alsa-oss first)
if it doesnt then you can try artsdsp quake3command which will work, but it might cause sound lag.(just tell arts to use alsa, which i think it does by default if its there.)
if the lag bothers you, then there is nothing really you can do besides buying a soundblaster live soundcard.
|
|
|
03-22-2005, 07:49 PM
|
#12
|
Member
Registered: Mar 2005
Location: New Jersey
Distribution: SuSE Professional 9.2
Posts: 31
Original Poster
Rep:
|
I have all problems resolved ! I now have XMMS working properly. Sounds for gaim work while XMMS is open and playing music. Thanks everybody !
|
|
|
03-28-2005, 07:15 AM
|
#13
|
Member
Registered: Jan 2005
Location: Sofia, Bulgaria
Distribution: Fedora Core 4 Rawhide
Posts: 431
Rep:
|
I had it fixed can't remmember how but this file:
Quote:
if you are using alsa(you should be)
then create a ~/.asoundrc file that has the contents of:
pcm.card0 {
type hw
card 0
mmap_emulation true
}
pcm.!output {
type dmix
ipc_key 1234
ipc_key_add_uid 1
slave {
pcm "card0"
period_time 0
period_size 1024
buffer_size 32768
rate 48000
}
bindings {
0 0
1 1
}
}
#
# DSNOOP output device
#
pcm.!input {
type dsnoop
ipc_key 4321
ipc_key_add_uid 1
slave {
pcm "card0"
period_time 0
period_size 1024
rate 48000
}
}
#
# ASYM duplex device
#
pcm.!duplex {
type asym
playback.pcm "output"
capture.pcm "input"
}
#
# Make the duplex device default
#
pcm.!default {
type plug
slave.pcm "duplex"
}
#
# OSS Compability
pcm.!dsp0 {
type plug
slave.pcm "duplex"
}
ctl.!mixer0 {
type hw
card 0
}
then set everything to use alsa(in xmms right click, preferences, and you can switch from esd or oss to alsa)
and you should be able to play multiple alsa sounds at the same time.
|
seems to result in GUI box saying sound not working check ... your grandma..
|
|
|
03-28-2005, 03:55 PM
|
#14
|
Member
Registered: May 2004
Location: South Carolina
Distribution: Slackware 11.0
Posts: 606
Rep:
|
that configuration doesn't support all cards, just intel i810 cards, and the nvidia onboard sound.
|
|
|
03-29-2005, 01:56 PM
|
#15
|
Member
Registered: Apr 2004
Posts: 120
Rep:
|
Thanks to everyone who posted here. It works!!!
|
|
|
All times are GMT -5. The time now is 11:46 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|