LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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
  Search this Thread
Old 02-08-2007, 12:20 AM   #1
r00tb33r
Member
 
Registered: Feb 2007
Distribution: Vector
Posts: 318

Rep: Reputation: 31
need help with ALSA software mixing


I am using ALSA with OSS emulation. The ALSA driver for my card is non-existent, so no hardware mixing. I would like to know how to install a software mixer and have programs use it by default so the sound card could be used simultaneously by applications... The most common problem is flash in a browser using the card and I can't play music or vice versa.
I don't know whole lot about sound on Linux so I need thorough directions.
My distro is a light version of Slackware so don't let Vector scare you.
 
Old 02-08-2007, 12:50 AM   #2
stan.distortion
Member
 
Registered: Sep 2005
Location: ireland
Distribution: debian with bits of everything stuck on it
Posts: 114

Rep: Reputation: 15
Im sure it is possible within alsa, the manual goes in to a lot of detail and it will be in there somewhere.
You have a few options outside of alsa though. If you are using a desktop, KDE has arts to take care of sound mixing, Gnome has gstreamer for the same and Im almost certain xfce, fluxbox, icewm, ect either use gstreamer or have there own systems.
The best of the lot (IMHO) is jack, that depends if your applications support it and (idealy) if your hardware can run jack with realtime capabilities. Also have a look at dbmix.

Hope that helps
Stan
 
Old 02-08-2007, 01:08 AM   #3
r00tb33r
Member
 
Registered: Feb 2007
Distribution: Vector
Posts: 318

Original Poster
Rep: Reputation: 31
I really have no clue how those mixers/wrappers work.
I use Xfce, the only environment installed in Vector 5.8. I do have Arts installed since I use kmix for controls, but Arts is not configured or started. I don't know whether XMMS can use Arts - on the output plugin list it lists choices: ALSA, OSS, ESD, disk_writer. ALSA and OSS obviously work since my ALSA is just an OSS emulation.
But when either of those used my card becomes unusable by other applications... I don't know how to set up the mixers and have programs use it.
For instance lets say I have Firefox with flash running, XMMS paused in the background, and I am playing Quake 3 (ioquake3 open source, since id quake3 sound is not working and cannot be echo-ed).
Is there any way to make such scenario work?
 
Old 02-10-2007, 05:20 AM   #4
stan.distortion
Member
 
Registered: Sep 2005
Location: ireland
Distribution: debian with bits of everything stuck on it
Posts: 114

Rep: Reputation: 15
dmix. It should already be on your system. here is a howto:
http://alsa.opensrc.org/index.php?title=DmixPlugin
Its not an easy to understand howto,
cat ~/.asoundrc
for instance. It reads input (the cat part) from a file, starting from your home directory (the ~ part), staying in your home directory and reading the hidden (the . part) asoundrc file, the configuration file for alsa.
Easier to open it with an editor from the command line:
gedit ~/.asoundrc
Sorry for the late reply, the email notification doesnt always work for me. If your stuck and dont get a reply within a day please post again.

Cheers,
Stan
 
Old 02-10-2007, 05:48 AM   #5
stan.distortion
Member
 
Registered: Sep 2005
Location: ireland
Distribution: debian with bits of everything stuck on it
Posts: 114

Rep: Reputation: 15
I think quake uses oss ie. /dev/dsp for sound. There is a way to get multiple channels with /dev/dsp but for me it has always been a pain in the neck, it was easier just to stop everything else that was using sound.
Firefox uses external applications for sound and video, you will need to configure each separately.
XMMS probably has a sound plugin available for your microwave.
Check what mixer can be used with the applications you want to use, they will probably all support alsa so dmix will be the easiest.
 
Old 02-10-2007, 10:17 PM   #6
r00tb33r
Member
 
Registered: Feb 2007
Distribution: Vector
Posts: 318

Original Poster
Rep: Reputation: 31
THANK YOU SO MUCH!!!
The above how-to does the job.
Actually it turned out easier than I thought.
I've used Linux for a couple of years and no mixing is something I thought was the small inconvenience price.
It all works now.
Btw, my Quake 3 sound mixes fine now - I use this open source port:
http://ioquake3.org/
It uses OpenAL for sound unlike the original ID version.
Its all good now, thanks again.
 
  


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
ALSA problems mixing sounds! Ian_Hawdon Linux - Software 4 09-02-2005 10:22 AM
alsa and dmix for software mixing darkleaf Linux - Software 6 04-02-2005 02:20 AM
Alsa problems: Not enough substreams for hardware mixing Murri Mandriva 1 01-23-2005 09:35 AM
ALSA level mixing, possible? VIP3R Linux - Software 1 01-02-2004 12:44 PM
ALSA Mixing Problem Aagrajag Linux - Software 5 05-02-2003 07:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:22 AM.

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