LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
LinkBack Search this Thread
Old 05-06-2004, 11:31 PM   #1
borrrden
Member
 
Registered: May 2004
Location: Philadelphia
Distribution: Fedora Core 3
Posts: 98

Rep: Reputation: 15
Don't know how to share channels with ALSA


This question was asked before, but I was unable to decipher the technical stuff to figure out how to fix it (sorry). My problem is, no matter what driver I use (ALSA or OSS) only one thing can play at a time (I play a song, and if I pause it I get a million IM noises from gaim, they can't both play at once).

How do I use the dmix plugin, or esound, or whatever it is i need to use to make this stop happening ?

Please be simple....cuz I am....
 
Old 05-07-2004, 12:54 AM   #2
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Well that depends. I've never been able to get OSS apps to play nice with dmix. ALSA apps work the bomb, though. What app are you using to play music? Also, could you check gaim's config to see how it handles sound? If it uses ALSA then we're in business. If not then look for a sound server output (esound, arts, jack). If it's just OSS (/dev/dsp) then I can't guarantee you'll be able to fix it. You might (some people report having done so) but I haven't.
 
Old 05-07-2004, 01:10 AM   #3
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
What kind of sound card is it? It might not have the capacity for hardware mixing or dual-channel output.
 
Old 05-07-2004, 08:35 AM   #4
borrrden
Member
 
Registered: May 2004
Location: Philadelphia
Distribution: Fedora Core 3
Posts: 98

Original Poster
Rep: Reputation: 15
it does have the capacity to play more than one thing, windows can do it, gaim doesn't list "ALSA" as one of the choices - here are the choices

Console Beep
Automatic
ESD
Arts
Command (enter a command)

I have 3 other drivers listed for my sound card ( ‎ICH4 845G/GL Chipset AC'97 Audio Controller) which are all OSS, but give me the same problem.

I am using Totem Media Player (it came with mandrake) to play music, I put gaim on Arts but it does the same thing

Last edited by borrrden; 05-07-2004 at 08:40 AM.
 
Old 05-07-2004, 09:10 AM   #5
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
Are you using GNOME or KDE as your desktop environment? If KDE, then you need to use aRTs (the KDE sound server), and you should set it to run at startup (the default behaviour) by going to the KDE Control Center=>Sound and Multimedia=>General (I think that's what the first tab is called). "Enable Sound Server Startup" should be checked.

If GNOME, you need to use ESD (eSound, the GNOME sound server); go to the Foot Menu=>(Applications or GNOME Control Center, people tend to fiddle with the GNOME menu system)=>Desktop Preferences=>Sound=>General (again, the first tab in the preferences dialog). Check "Enable Sound Server Startup".

You can log out and back in, or type 'esd' (for "eSound daemon") in a terminal to start it; you can likely type 'artsd' (for "aRTs daemon") in a terminal as well, but I'm not a big KDE user, so I don't know for sure. Logging out of the DE and back in will definitely start the daemon in question, since they are set to run at startup of the DE.

Hope that doing so solves your problem.
 
Old 05-07-2004, 09:14 AM   #6
Chris H
Member
 
Registered: Aug 2003
Location: Farnborough, UK
Distribution: Zenwalk
Posts: 288

Rep: Reputation: 30
Only ever been able to getmore than 2 apps using the soundcard in KDE. Under Gnome however with Mandrake 10 it works fine.
 
Old 05-07-2004, 10:30 AM   #7
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Quote:
What kind of sound card is it? It might not have the capacity for hardware mixing or dual-channel output.
With the dmix plugin or a sound server you're using software mixing therefore whether your card supports it is irrelevant.
Quote:
it does have the capacity to play more than one thing, windows can do it
Windows uses software mixing in kernel space by default for all sound, I believe.
Quote:
here are the choices

Console Beep
Automatic
ESD
Arts
Command (enter a command)
You'd probably want to use esd. Like motub said, arts is the default for KDE but I've heard all sorts of horror stories about arts.

There is the alternative of using dmix. Apparently people have successfully used it on OSS applications.
 
Old 05-07-2004, 10:44 AM   #8
borrrden
Member
 
Registered: May 2004
Location: Philadelphia
Distribution: Fedora Core 3
Posts: 98

Original Poster
Rep: Reputation: 15
Ok I'm using GNOME now and gaim is using ESD, but still the sounds won't play at the same time

It doesn't bombard me with noises when i stop a song but it doesn't play the noises while the song is playing still....
 
Old 05-07-2004, 10:55 AM   #9
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
What media player? Is it using its esd output plugin? If not, then esd can't very well manage that app's sound in relation to GAIM's, now, can it ?

XMMS definitely allows you to choose eSound; that's what I mostly use, so I can't say for other audio apps.

And yes, sound is really a PITA to configure to your specifications under Linux for some reason. Just be glad it's at least working-- you're better off than a lot of people .
 
Old 05-07-2004, 11:10 AM   #10
borrrden
Member
 
Registered: May 2004
Location: Philadelphia
Distribution: Fedora Core 3
Posts: 98

Original Poster
Rep: Reputation: 15
It wasn't working for a long time, I have a tip that solved my problem and I didn't see it mentioned anywhere else.

in terminal - run alsamixer

Go all the way to the right "External Amplifier Power Down"

my sound will not work unless this channel is MUTED (hit M)

I installed xmms, and it will only use an OSS driver.....and now gaim doesn't make noise at all....sound or not......

Last edited by borrrden; 05-07-2004 at 11:17 AM.
 
Old 05-07-2004, 11:27 AM   #11
borrrden
Member
 
Registered: May 2004
Location: Philadelphia
Distribution: Fedora Core 3
Posts: 98

Original Poster
Rep: Reputation: 15
wait wait i've determined.....gaim only makes noise if a song is stopped, as opposed to playing or paused....where can i get an ESD plugin for xmms?
 
Old 05-07-2004, 11:32 AM   #12
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
It should be in there already. Right-click on the XMMS window, go to Options=>Preferences. On the very first tab is the Output Plugin selection (under the Input Plugin list). Use the drop-down box to change it from whatever it is to "eSound Output Plugin".
 
Old 05-07-2004, 11:48 AM   #13
borrrden
Member
 
Registered: May 2004
Location: Philadelphia
Distribution: Fedora Core 3
Posts: 98

Original Poster
Rep: Reputation: 15
being the genius that i am....i uninstalled xmms.....now i have to reinstall it.......but there was no other output option besides OSS
 
Old 05-07-2004, 11:50 AM   #14
borrrden
Member
 
Registered: May 2004
Location: Philadelphia
Distribution: Fedora Core 3
Posts: 98

Original Poster
Rep: Reputation: 15
nevermind the plugin was in rpmdrake, had to be installed seperately, and now everything works :-D thanks!!!!

now onto my wireless card problem.....
 
Old 05-07-2004, 12:28 PM   #15
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
Yeah, Mandrake tends to do that. Glad you got it working .
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ALSA Surround - Rear channels mmelin Linux - General 0 08-01-2004 03:18 PM
Simple Samba Setup, Share & Not Share timmywo Linux - Software 4 07-30-2004 07:27 AM
SBlive! stereo channels w/ALSA kodon Slackware 1 07-17-2004 08:58 PM
xawtv and channels markus1982 Linux - Software 0 08-18-2003 03:36 PM
ALSA drivers work well, sound channels mixed up (INTEL AD1981A ICH4) fritex Linux - Software 6 05-30-2003 08:59 PM


All times are GMT -5. The time now is 08:07 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