Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 05-20-2005, 03:42 PM   #1
Registered: Aug 2003
Location: Fresno, California
Distribution: Slackware 10.1
Posts: 35

Rep: Reputation: 15
audacity not capturing sound

I cannot get audacity to capture sound played through the sound card. I can import sound files just fine, but I'm not able to record sound that is being played. I have two sound cards and I think that is the problem. I have the integrated card on my motherboard that I do not use, and a soundblaster sbLIVE pci card that I do use. How can I find out which card is which in /dev and how to configure audacity to listen to it.
Old 05-20-2005, 08:33 PM   #2
Senior Member
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
The first solution I would try is to go into the motherboard bios and disable the onboard sound. Most have options for this.

If you don't know how to enter the BIOS, normally you hit delete or F2 or somesuch as the machine first boots, before it gets to the bootloader. Which key to hit is also usually displayed.

Old 05-20-2005, 08:55 PM   #3
Registered: Apr 2005
Location: Havant, Hampshire, UK
Distribution: Slamd64, Slackware, PS2Linux
Posts: 465

Rep: Reputation: 44
I recently had a very similar problem with my Audigy2, Audacity and Slamd64 (10.1 with a newer toolchain, for all intents and purposes).

I fixed it, eventually.

1. Disable the second soundcard at BIOS level, then there's no confusion as to which card is getting used.
2. In the kernel, be sure OSS emulation is ticked under ALSA and check any necessary OSS modules you need are also in there.
3. At bootup time, just before you get the login, you should be seeing this message:

Loading ALSA mixer settings: /usr/sbin/alsactl restore
Loading OSS compatibility modules for ALSA.

If you do not see that, or you see something else - the OSS part isn't sorted.

4. Recompile Audacity without ALSA (./configure --with-portaudio=v18). The only difference should be the entry point for Audacity - it knows more about OSS than ALSA, so you're more likely to get the results you want.
5. Run "alsaconf" as root, just to be certain you've got it all sorted.
6. Run "alsamixer" (as user) - this'll bring up an ugly looking mixer (alsa 1.0.7, perhaps?) but it's the only one that I can get to work properly.

You want to hit tab once which will switch from displaying "output" levels to "input" ("capture") levels - these are your recording levels. PCM represents sound being played through your system, while I suspect you want that at 0 and LINE or similar up near full whack. Hitting tab again will move you to display mode "all" (not so useful), a third time will move you back to "output" or "playback". Dropping LINE playback to 0 will mean you can record from line in while playing sound back from, XMMS, say, without it affecting your recording!

I haven't tried this under anything less than a 2.6.9 kernel - but theoretically the same applies for a 2.4 series.

Incidentally, the newer versions of alsamixer (and associated drivers, utils and tools) are significantly better than the ones shipped with 2.6.9 and I am currently using kernel version 2.6.12rc4 (ships with ALSA drivers 1.0.8) as well as the 1.0.9beta alsa-libs and alsa-utils (where you get alsamixer from).

If you're going to upgrade ALSA, make sure you copy /etc/rc.d/rc.alsa before removing the alsa-utils package, then copy it back to /etc/rc.d/ after compiling and (check-)installing the new alsa-libs / alsa-utils.

Finally, Audacity should be setup to use /dev/dsp as both playback and recording (if you've run it --with-portaudio=v18, it'll be the only option available). Pushing record should show the recording level meter bounce around a bit.
Old 05-21-2005, 08:14 PM   #4
Registered: Aug 2003
Location: Fresno, California
Distribution: Slackware 10.1
Posts: 35

Original Poster
Rep: Reputation: 15

I was totally on the wrong track. I fiddled around with the preferences tab in audacity and seem to have fixed the problem. I unchecked the 'software playthrough' button and the 'play other tracks' button and it works great. Thanks.
Old 05-24-2005, 09:26 PM   #5
LQ Newbie
Registered: Jul 2004
Posts: 21

Rep: Reputation: 16
What do I need to select for "capture" in alsamixer? I tried just about all of them with no success and I unchecked the two options like you said in audacity. I also tried using the rec command.

Under capture view in alsamixer, I do not have a PCM option. Do you guys have that?

Last edited by VibeOfOurTribe; 05-25-2005 at 01:34 AM.


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
No sound recorded from mic Audacity Ray4389 Fedora 11 08-29-2005 03:50 PM
Little app for Capturing sound card stream to file. teckk Linux - Software 0 05-15-2005 12:54 PM
capturing sound from external source ankscorek Linux - Hardware 7 12-08-2004 02:55 AM
Problem recording sound with Audacity 1.2 vharishankar Linux - General 5 09-11-2004 01:30 AM
sound is off with audacity install bosewicht Linux - Newbie 0 04-10-2004 11:53 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:36 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration