I’m trying to capture audio from a stream, NOT from the mic. This is what I’m doing: Start Audacity, push its record button, play a song. It shows that it is recording but when I play back the results, all background noise, conversation, etc, is in the recording as well as the audio from the song. If the mic is unplugged, I cannot record what I hear coming from the sound card (as in what you hear from the sound card is what you get).
I got directions on how to do what I want here ( Looking (maybe) for audio mixer for use with Pulse Audio - Page 2 Posts # 4 and 5) but it’s not permanent. I got the instructions in post #11 from that same page to make such a change permanent.
I tried using the instructions to make the change permanent (I backed up my default.pa just in case something went wrong) and these are the changes I had made:
### Load audio drivers statically (it's probably better to not load
### these drivers manually, but instead use module-hal-detect --
### see below -- for doing this automatically)
#load-module module-alsa-sink
#load-module module-alsa-source device=hw:1,0
#load-module module-oss device="/dev/dsp" sink_name=output source_name=input
#load-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input
**load-module module-null-sink sink_name=blahsound**
#load-module module-pipe-sink
**load-module module-loopback sink=blahsound
load-module module-loopback sink=blahsound**
When I used the arecord -vv -f cd test.wav command, it seemed to record nicely from the sound card. However, if I used Audacity, it seemed to only be able to record from the mic. I have tried its other settings ((Multichannel Capture/PT Playback (hw0, 2); Mic Capture (hw 0, 1); ADC Capture/Standard PCM (hw 0, 0); SPDIF; Pulse; Default)) But the only one that works is the Multichannel selection, but that is using the mic to capture and that is not acceptable for what I want to do.
Also, when I did make the permanent changes, to default.pa, “pavucontrol” no longer worked. It said, “Connection Failed. Connection Terminated” and you have to hit the “Close” button. When I tried again but while playing a song, not only did pavucontrol fail again but my sound no longer worked! And yes, I had restarted the computer after the changes were made.
After that, I recopied the original default.pa back and restarted the computer.
The original instructions were found here: [SOLVED] ALSA and PulseAudio - recording multiple input devices?](http://www.linuxquestions.org/questions/linux-software-2/alsa-and-pulseaudio-recording-multiple-input-devices-877614/) and here: Stebalien: How to record one’s linux computer with pulseaudio (I’m just posting those links so you’ll know where the directions I followed came from).
Here is the result of /usr/sbin/alsa-info.sh http://www.alsa-project.org/db/?f=f9f97111945e2f917bb2f7f1143e4765cf00bed0
Just for your reference if you need it:
cat /etc/modprobe.d/50-sound.conf
options snd slots=snd-emu10k1
# 2+Ni.trsEqNGuZ00:SB0090 Audigy Player
alias snd-card-0 snd-emu10k1
rpm -qa ‘alsa’
alsa-devel-1.0.24.1-86.1.x86_64
alsamixergui-0.9.0rc1-1492.1.x86_64
alsa-plugins-pulse-1.0.24-6.1.x86_64
alsa-1.0.24.1-4.7.1.x86_64
alsa-plugins-pulse-32bit-1.0.24-6.1.x86_64
alsa-oss-1.0.17-32.1.x86_64
alsa-oss-32bit-1.0.17-32.1.x86_64
alsa-utils-1.0.24.2-3.1.x86_64
alsa-plugins-32bit-1.0.24-6.1.x86_64
alsa-plugins-1.0.24-6.1.x86_64
alsa-firmware-1.0.24.1-3.1.noarch
rpm -qa ‘pulse’
libpulse-browse0-0.9.22-6.11.1.x86_64
pulseaudio-module-lirc-0.9.22-6.11.1.x86_64
alsa-plugins-pulse-1.0.24-6.1.x86_64
libpulse0-32bit-0.9.22-6.11.1.x86_64
libpulse0-0.9.22-6.11.1.x86_64
pulseaudio-module-x11-0.9.22-6.11.1.x86_64
pulseaudio-utils-0.9.22-6.11.1.x86_64
alsa-plugins-pulse-32bit-1.0.24-6.1.x86_64
pulseaudio-esound-compat-0.9.22-6.11.1.x86_64
libpulse-mainloop-glib0-0.9.22-6.11.1.x86_64
pulseaudio-module-jack-0.9.22-6.11.1.x86_64
pulseaudio-module-bluetooth-0.9.22-6.11.1.x86_64
pulseaudio-module-zeroconf-0.9.22-6.11.1.x86_64
libxine1-pulse-1.1.19-4.4.x86_64
pulseaudio-0.9.22-6.11.1.x86_64
rpm -q libasound2
libasound2-1.0.24.1-4.7.1.x86_64
Here is the result of arecord -l:
**** List of CAPTURE Hardware Devices ****
card 0: Audigy [SB Audigy 1 [SB0090]], device 0: emu10k1 [ADC Capture/Standard PCM Playback]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Audigy [SB Audigy 1 [SB0090]], device 1: emu10k1 mic [Mic Capture]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Audigy [SB Audigy 1 [SB0090]], device 2: emu10k1 efx [Multichannel Capture/PT Playback]
Subdevices: 1/1
Subdevice #0: subdevice #0