PDA

View Full Version : How to record internal sound



Vector
20th May 2010, 10:03 PM
I've got audacity, and i've tried all the different input settings, and i can't get it to record from the sound that comes from applications, like games, etc. I checked the sound preferences and alsa/internal is selected as a sound source. I'm kinda stumped as to how to do this... Any clues?

Thanks

BugRocks1
21st May 2010, 09:49 PM
pactl load-module module-loopback

Vector
21st May 2010, 09:59 PM
I guess that is a user-mode command (i'll find out here in a second)?

I did it as user, and got 23 in return; i did it as root and got 24 in return. I opened audacity and seen nothing new. Am i missing something?

I think that it's odd that this is not enabled as an option by default...

Thanx

BugRocks1
22nd May 2010, 06:08 AM
The "index: 23" is telling you the number id of the module loaded.

To see the module loaded.

pacmd list-modules | grep -iA10 23

To se a complete list of settings from pulseaudio:

pactl list

Audacity needs to be configured to use "pulse" in the preferrences(Audio I/O -> recording or something like that) and you need to see what is being monitored by the sink(output) in the recording tab of pavucontrol unless you want to use the pacmd to do it.

The playback controls in pavucontrol showing outputs.
http://forums.fedoraforum.org/attachment.php?attachmentid=19425&d=1272334552

Recording tab showing the monitors available.
http://forums.fedoraforum.org/attachment.php?attachmentid=19426&d=1272334559

So you go to the playback tab and see what audacity is using and set the same one for the recording, for the recording stream appear you need to start recording something in audacity and pause it or else you will see nothing because no software is recording anything.

Vector
23rd May 2010, 06:10 AM
I don't have the option to use pulse in Audacity. For 'Interface: Host:' i only have alsa; however for recording device, i DO have pulse; but i don't think that i can use it if i don't have its host interface available. Recording from it still records from the Mic. I looked in my services list and did not see pulse in there. I looked in "System > Preferences > Startup Apps", and "PulseAudio Sound System" and "PulseAudio Sound System KDE" are both enabled. Here is the output from those commands:


[^v^]# pacmd list-modules | grep -iA10 23
No PulseAudio daemon running, or not running as session daemon.




Module #0
Name: module-device-restore
Argument:
Usage counter: n/a
Properties:
module.author = "Lennart Poettering"
module.description = "Automatically restore the volume/mute state of devices"
module.version = "0.9.21"

Module #1
Name: module-stream-restore
Argument:
Usage counter: n/a
Properties:
module.author = "Lennart Poettering"
module.description = "Automatically restore the volume/mute/device state of streams"
module.version = "0.9.21"

Module #2
Name: module-card-restore
Argument:
Usage counter: n/a
Properties:
module.author = "Lennart Poettering"
module.description = "Automatically restore profile of cards"
module.version = "0.9.21"

Module #3
Name: module-augment-properties
Argument:
Usage counter: n/a
Properties:
module.author = "Lennart Poettering"
module.description = "Augment the property sets of streams with additional static information"
module.version = "0.9.21"

Module #4
Name: module-alsa-card
Argument: device_id="1" name="usb-Samson_Technologies_Samson_C01U-00" card_name="alsa_card.usb-Samson_Technologies_Samson_C01U-00" tsched=yes ignore_dB=no card_properties="module-udev-detect.discovered=1"
Usage counter: 0
Properties:
module.author = "Lennart Poettering"
module.description = "ALSA Card"
module.version = "0.9.21"

Module #5
Name: module-alsa-card
Argument: device_id="0" name="usb-046d_09a1_5CE01550-02" card_name="alsa_card.usb-046d_09a1_5CE01550-02" tsched=yes ignore_dB=no card_properties="module-udev-detect.discovered=1"
Usage counter: 0
Properties:
module.author = "Lennart Poettering"
module.description = "ALSA Card"
module.version = "0.9.21"

Module #6
Name: module-alsa-card
Argument: device_id="2" name="pci-0000_00_14.2" card_name="alsa_card.pci-0000_00_14.2" tsched=yes ignore_dB=no card_properties="module-udev-detect.discovered=1"
Usage counter: 5
Properties:
module.author = "Lennart Poettering"
module.description = "ALSA Card"
module.version = "0.9.21"

Module #7
Name: module-udev-detect
Argument:
Usage counter: n/a
Properties:
module.author = "Lennart Poettering"
module.description = "Detect available audio hardware and load matching drivers"
module.version = "0.9.21"

Module #8
Name: module-bluetooth-discover
Argument:
Usage counter: n/a
Properties:
module.author = "Joao Paulo Rechi Vita"
module.description = "Detect available bluetooth audio devices and load bluetooth audio drivers"
module.version = "0.9.21"

Module #9
Name: module-esound-protocol-unix
Argument:
Usage counter: n/a
Properties:
module.author = "Lennart Poettering"
module.description = "ESOUND protocol (UNIX sockets)"
module.version = "0.9.21"

Module #10
Name: module-native-protocol-unix
Argument:
Usage counter: n/a
Properties:
module.author = "Lennart Poettering"
module.description = "Native protocol (UNIX sockets)"
module.version = "0.9.21"

Module #11
Name: module-gconf
Argument:
Usage counter: n/a
Properties:
module.author = "Lennart Poettering"
module.description = "GConf Adapter"
module.version = "0.9.21"

Module #12
Name: module-default-device-restore
Argument:
Usage counter: n/a
Properties:
module.author = "Lennart Poettering"
module.description = "Automatically restore the default sink and source"
module.version = "0.9.21"

Module #13
Name: module-rescue-streams
Argument:
Usage counter: n/a
Properties:
module.author = "Lennart Poettering"
module.description = "When a sink/source is removed, try to move their streams to the default sink/source"
module.version = "0.9.21"

Module #14
Name: module-always-sink
Argument:
Usage counter: n/a
Properties:
module.author = "Colin Guthrie"
module.description = "Always keeps at least one sink loaded even if it's a null one"
module.version = "0.9.21"
Module #15
Name: module-intended-roles
Argument:
Usage counter: n/a
Properties:
module.author = "Lennart Poettering"
module.description = "Automatically set device of streams based of intended roles of devices"
module.version = "0.9.21"

Module #16
Name: module-suspend-on-idle
Argument:
Usage counter: n/a
Properties:
module.author = "Lennart Poettering"
module.description = "When a sink/source is idle for too long, suspend it"
module.version = "0.9.21"

Module #17
Name: module-console-kit
Argument:
Usage counter: n/a
Properties:
module.author = "Lennart Poettering"
module.description = "Create a client for each ConsoleKit session of this user"
module.version = "0.9.21"

Module #18
Name: module-position-event-sounds
Argument:
Usage counter: n/a
Properties:
module.author = "Lennart Poettering"
module.description = "Position event sounds between L and R depending on the position on screen of the widget triggering them."
module.version = "0.9.21"

Module #19
Name: module-cork-music-on-phone
Argument:
Usage counter: n/a
Properties:
module.author = "Lennart Poettering"
module.description = "Mute or cork music while a phone stream exists"
module.version = "0.9.21"

Module #20
Name: module-x11-publish
Argument: display=:0.0
Usage counter: n/a
Properties:
module.author = "Lennart Poettering"
module.description = "X11 credential publisher"
module.version = "0.9.21"

Module #21
Name: module-x11-cork-request
Argument: display=:0.0
Usage counter: n/a
Properties:
module.author = "Lennart Poettering"
module.description = "Synthesize X11 media key events when cork/uncork is requested"
module.version = "0.9.21"
Module #22
Name: module-x11-xsmp
Argument: display=:0.0 session_manager=local/unix:@/tmp/.ICE-unix/3390,unix/unix:/tmp/.ICE-unix/3390
Usage counter: n/a
Properties:
module.author = "Lennart Poettering"
module.description = "X11 session management"
module.version = "0.9.21"

Module #23
Name: module-loopback
Argument:
Usage counter: n/a
Properties:
module.author = "Pierre-Louis Bossart"
module.description = "Loopback from source to sink"
module.version = "0.9.21"

Module #24
Name: module-loopback
Argument:
Usage counter: n/a
Properties:
module.author = "Pierre-Louis Bossart"
module.description = "Loopback from source to sink"
module.version = "0.9.21"

Vector
23rd May 2010, 06:11 AM
Source #0
State: SUSPENDED
Name: alsa_input.usb-Samson_Technologies_Samson_C01U-00.analog-stereo
Description: Samson C01U Analog Stereo
Driver: module-alsa-card.c
Sample Specification: s16le 2ch 44100Hz
Channel Map: front-left,front-right
Owner Module: 4
Mute: no
Volume: 0: 100% 1: 100%
0: 0.00 dB 1: 0.00 dB
balance 0.00
Base Volume: 40%
-24.00 dB
Monitor of Sink: n/a
Latency: 0 usec, configured 0 usec
Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY
Properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "USB Audio"
alsa.id = "USB Audio"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "1"
alsa.card_name = "Samson C01U"
alsa.long_card_name = "Samson Technologies Samson C01U at usb-0000:00:13.1-1, full"
alsa.driver_name = "snd_usb_audio"
device.bus_path = "pci-0000:00:13.1-usb-0:1:1.0"
sysfs.path = "/devices/pci0000:00/0000:00:13.1/usb3/3-1/3-1:1.0/sound/card1"
udev.id = "usb-Samson_Technologies_Samson_C01U-00"
device.bus = "usb"
device.vendor.id = "17a0"
device.vendor.name = "Samson Technologies "
device.product.id = "0001"
device.product.name = "Samson C01U "
device.serial = "Samson_Technologies_Samson_C01U"
device.string = "front:1"
device.buffering.buffer_size = "352800"
device.buffering.fragment_size = "176400"
device.access_mode = "mmap+timer"
device.profile.name = "analog-stereo"
device.profile.description = "Analog Stereo"
device.description = "Samson C01U Analog Stereo"
alsa.mixer_name = "USB Mixer"
alsa.components = "USB17a0:0001"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-usb"

Source #1
State: IDLE
Name: alsa_output.pci-0000_00_14.2.analog-stereo.monitor
Description: Monitor of Internal Audio Analog Stereo
Driver: module-alsa-card.c
Sample Specification: s16le 2ch 44100Hz
Channel Map: front-left,front-right
Owner Module: 6
Mute: no
Volume: 0: 100% 1: 100%
0: 0.00 dB 1: 0.00 dB
balance 0.00
Base Volume: 100%
0.00 dB
Monitor of Sink: alsa_output.pci-0000_00_14.2.analog-stereo
Latency: 0 usec, configured 1999818 usec
Flags: DECIBEL_VOLUME LATENCY
Properties:
device.description = "Monitor of Internal Audio Analog Stereo"
device.class = "monitor"
alsa.card = "2"
alsa.card_name = "HDA ATI SB"
alsa.long_card_name = "HDA ATI SB at 0xf9ff0000 irq 16"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:00:14.2"
sysfs.path = "/devices/pci0000:00/0000:00:14.2/sound/card2"
device.bus = "pci"
device.vendor.id = "1002"
device.vendor.name = "ATI Technologies Inc"
device.product.id = "4383"
device.product.name = "SBx00 Azalia (Intel HDA)"
device.form_factor = "internal"
device.string = "2"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"

Source #2
State: RUNNING
Name: alsa_input.pci-0000_00_14.2.analog-stereo
Description: Internal Audio Analog Stereo
Driver: module-alsa-card.c
Sample Specification: s16le 2ch 44100Hz
Channel Map: front-left,front-right
Owner Module: 6
Mute: no
Volume: 0: 42% 1: 42%
0: -22.50 dB 1: -22.50 dB
balance 0.00
Base Volume: 27%
-34.50 dB
Monitor of Sink: n/a
Latency: 0 usec, configured 1006000 usec
Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY
Properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "ALC883 Analog"
alsa.id = "ALC883 Analog"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "2"
alsa.card_name = "HDA ATI SB"
alsa.long_card_name = "HDA ATI SB at 0xf9ff0000 irq 16"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:00:14.2"
sysfs.path = "/devices/pci0000:00/0000:00:14.2/sound/card2"
device.bus = "pci"
device.vendor.id = "1002"
device.vendor.name = "ATI Technologies Inc"
device.product.id = "4383"
device.product.name = "SBx00 Azalia (Intel HDA)"
device.form_factor = "internal"
device.string = "front:2"
device.buffering.buffer_size = "352768"
device.buffering.fragment_size = "176384"
device.access_mode = "mmap+timer"
device.profile.name = "analog-stereo"
device.profile.description = "Analog Stereo"
device.description = "Internal Audio Analog Stereo"
alsa.mixer_name = "Realtek ALC883"
alsa.components = "HDA:10ec0883,10191013,00100002"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
Ports:
input-microphone-1: Microphone 1 (priority. 20)
input-microphone-2: Microphone 2 (priority. 19)
input-linein: Line-In (priority. 18)
Active Port: input-linein

Vector
23rd May 2010, 06:12 AM
Sink #0
State: RUNNING
Name: alsa_output.pci-0000_00_14.2.analog-stereo
Description: Internal Audio Analog Stereo
Driver: module-alsa-card.c
Sample Specification: s16le 2ch 44100Hz
Channel Map: front-left,front-right
Owner Module: 6
Mute: no
Volume: 0: 34% 1: 34%
0: -28.11 dB 1: -28.11 dB
balance 0.00
Base Volume: 100%
0.00 dB
Monitor Source: alsa_output.pci-0000_00_14.2.analog-stereo.monitor
Latency: 53356 usec, configured 56000 usec
Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY
Properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "ALC883 Analog"
alsa.id = "ALC883 Analog"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "2"
alsa.card_name = "HDA ATI SB"
alsa.long_card_name = "HDA ATI SB at 0xf9ff0000 irq 16"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:00:14.2"
sysfs.path = "/devices/pci0000:00/0000:00:14.2/sound/card2"
device.bus = "pci"
device.vendor.id = "1002"
device.vendor.name = "ATI Technologies Inc"
device.product.id = "4383"
device.product.name = "SBx00 Azalia (Intel HDA)"
device.form_factor = "internal"
device.string = "front:2"
device.buffering.buffer_size = "352768"
device.buffering.fragment_size = "176384"
device.access_mode = "mmap+timer"
device.profile.name = "analog-stereo"
device.profile.description = "Analog Stereo"
device.description = "Internal Audio Analog Stereo"
alsa.mixer_name = "Realtek ALC883"
alsa.components = "HDA:10ec0883,10191013,00100002"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
Ports:
analog-output: Analog Output (priority. 9900)
analog-output-headphones: Analog Headphones (priority. 9000)
Active Port: analog-output

Sink Input #52689
Driver: module-loopback.c
Owner Module: 23
Client: n/a
Sink: 0
Sample Specification: s16le 2ch 46625Hz
Channel Map: front-left,front-right
Mute: no
Volume: 0: 34% 1: 34%
0: -28.11 dB 1: -28.11 dB
balance 0.00
Buffer Latency: 230434 usec
Sink Latency: 50461 usec
Resample method: speex-float-3
Properties:
media.name = "Loopback of Internal Audio Analog Stereo"
media.icon_name = "audio-card-pci"
media.role = "abstract"
module-stream-restore.id = "sink-input-by-media-role:abstract"

Sink Input #52721
Driver: module-loopback.c
Owner Module: 24
Client: n/a
Sink: 0
Sample Specification: s16le 2ch 46626Hz
Channel Map: front-left,front-right
Mute: no
Volume: 0: 34% 1: 34%
0: -28.11 dB 1: -28.11 dB
balance 0.00
Buffer Latency: 230407 usec
Sink Latency: 50375 usec
Resample method: speex-float-3
Properties:
media.name = "Loopback of Internal Audio Analog Stereo"
media.icon_name = "audio-card-pci"
media.role = "abstract"
module-stream-restore.id = "sink-input-by-media-role:abstract"

Sink Input #54242
Driver: protocol-native.c
Owner Module: 10
Client: 715
Sink: 0
Sample Specification: s16le 2ch 44100Hz
Channel Map: front-left,front-right
Mute: no
Volume: 0: 34% 1: 34%
0: -28.11 dB 1: -28.11 dB
balance 0.00
Buffer Latency: 420929 usec
Sink Latency: 50291 usec
Resample method: n/a
Properties:
media.name = "ALSA Playback"
application.name = "ALSA plug-in [xmms]"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "16"
application.process.id = "3834"
application.process.user = "Vector"
application.process.host = "hate.ionisis"
application.process.binary = "xmms"
window.x11.display = ":0.0"
application.language = "en_US.UTF-8"
application.process.machine_id = "873283f9c409be16e83d1f5d4b25a46a"
application.process.session_id = "873283f9c409be16e83d1f5d4b25a46a-1274403204.447998-2089546719"
module-stream-restore.id = "sink-input-by-application-name:ALSA plug-in [xmms]"


---------- Post added at 01:12 AM CDT ---------- Previous post was at 01:12 AM CDT ----------



Source Output #61
Driver: module-loopback.c
Owner Module: 23
Client: n/a
Source: 2
Sample Specification: s16le 2ch 44100Hz
Channel Map: front-left,front-right
Buffer Latency: 0 usec
Source Latency: 0 usec
Resample method: n/a
Properties:
media.name = "Loopback to Internal Audio Analog Stereo"
media.icon_name = "audio-card-pci"
media.role = "abstract"
module-stream-restore.id = "source-output-by-media-role:abstract"

Source Output #93
Driver: module-loopback.c
Owner Module: 24
Client: n/a
Source: 2
Sample Specification: s16le 2ch 44100Hz
Channel Map: front-left,front-right
Buffer Latency: 0 usec
Source Latency: 0 usec
Resample method: n/a
Properties:
media.name = "Loopback to Internal Audio Analog Stereo"
media.icon_name = "audio-card-pci"
media.role = "abstract"
module-stream-restore.id = "source-output-by-media-role:abstract"

Vector
23rd May 2010, 06:13 AM
Client #0
Driver: module-console-kit.c
Owner Module: 17
Properties:
application.name = "ConsoleKit Session /org/freedesktop/ConsoleKit/Session6"
console-kit.session = "/org/freedesktop/ConsoleKit/Session6"

Client #1
Driver: protocol-native.c
Owner Module: 10
Properties:
application.name = "GNOME Volume Control Media Keys"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "16"
application.id = "org.gnome.VolumeControl"
application.icon_name = "multimedia-volume-control"
application.version = "2.28.2"
application.process.id = "3481"
application.process.user = "Vector"
application.process.host = "hate.ionisis"
application.process.binary = "gnome-settings-daemon"
window.x11.display = ":0.0"
application.language = "en_US.UTF-8"
application.process.machine_id = "873283f9c409be16e83d1f5d4b25a46a"
application.process.session_id = "873283f9c409be16e83d1f5d4b25a46a-1274403204.447998-2089546719"

Client #2
Driver: protocol-native.c
Owner Module: 10
Properties:
application.name = "GNOME Volume Control Applet"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "16"
application.id = "org.gnome.VolumeControl"
application.icon_name = "multimedia-volume-control"
application.version = "2.28.5"
application.process.id = "3526"
application.process.user = "Vector"
application.process.host = "hate.ionisis"
application.process.binary = "gnome-volume-control-applet"
window.x11.display = ":0.0"
application.language = "en_US.UTF-8"
application.process.machine_id = "873283f9c409be16e83d1f5d4b25a46a"
application.process.session_id = "873283f9c409be16e83d1f5d4b25a46a-1274403204.447998-2089546719"

Client #6
Driver: module-x11-xsmp.c
Owner Module: 22
Properties:
application.name = "XSMP Session on gnome-session as 1092b6339952db7343127440320718864500000033900045"
xsmp.vendor = "gnome-session"
xsmp.client.id = "1092b6339952db7343127440320718864500000033900045"

Client #715
Driver: protocol-native.c
Owner Module: 10
Properties:
application.name = "ALSA plug-in [xmms]"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "16"
application.process.id = "3834"
application.process.user = "Vector"
application.process.host = "hate.ionisis"
application.process.binary = "xmms"
window.x11.display = ":0.0"
application.language = "en_US.UTF-8"
application.process.machine_id = "873283f9c409be16e83d1f5d4b25a46a"
application.process.session_id = "873283f9c409be16e83d1f5d4b25a46a-1274403204.447998-2089546719"

Client #716
Driver: protocol-native.c
Owner Module: 10
Properties:
application.name = "pactl"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "16"
application.process.id = "30950"
application.process.user = "root"
application.process.host = "hate.ionisis"
application.process.binary = "pactl"
application.language = "en_US.UTF-8"
window.x11.display = ":0.0"
application.process.machine_id = "873283f9c409be16e83d1f5d4b25a46a"


---------- Post added at 01:13 AM CDT ---------- Previous post was at 01:13 AM CDT ----------



Card #0
Name: alsa_card.usb-Samson_Technologies_Samson_C01U-00
Driver: module-alsa-card.c
Owner Module: 4
Properties:
alsa.card = "1"
alsa.card_name = "Samson C01U"
alsa.long_card_name = "Samson Technologies Samson C01U at usb-0000:00:13.1-1, full"
alsa.driver_name = "snd_usb_audio"
device.bus_path = "pci-0000:00:13.1-usb-0:1:1.0"
sysfs.path = "/devices/pci0000:00/0000:00:13.1/usb3/3-1/3-1:1.0/sound/card1"
udev.id = "usb-Samson_Technologies_Samson_C01U-00"
device.bus = "usb"
device.vendor.id = "17a0"
device.vendor.name = "Samson Technologies "
device.product.id = "0001"
device.product.name = "Samson C01U "
device.serial = "Samson_Technologies_Samson_C01U"
device.string = "1"
device.description = "Samson C01U "
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-usb"
Profiles:
input:analog-mono: Analog Mono Input (sinks: 0, sources: 1, priority. 1)
input:analog-stereo: Analog Stereo Input (sinks: 0, sources: 1, priority. 60)
input:iec958-stereo: Digital Stereo (IEC958) Input (sinks: 0, sources: 1, priority. 55)
off: Off (sinks: 0, sources: 0, priority. 0)
Active Profile: input:analog-stereo

Card #1
Name: alsa_card.usb-046d_09a1_5CE01550-02
Driver: module-alsa-card.c
Owner Module: 5
Properties:
alsa.card = "0"
alsa.card_name = "USB Device 0x46d:0x9a1"
alsa.long_card_name = "USB Device 0x46d:0x9a1 at usb-0000:00:13.5-4, high speed"
alsa.driver_name = "snd_usb_audio"
device.bus_path = "pci-0000:00:13.5-usb-0:4:1.2"
sysfs.path = "/devices/pci0000:00/0000:00:13.5/usb1/1-4/1-4:1.2/sound/card0"
udev.id = "usb-046d_09a1_5CE01550-02"
device.bus = "usb"
device.vendor.id = "046d"
device.vendor.name = "Logitech, Inc."
device.product.id = "09a1"
device.product.name = "QuickCam Communicate MP/S5500"
device.serial = "046d_09a1_5CE01550"
device.form_factor = "webcam"
device.string = "0"
device.description = "QuickCam Communicate MP/S5500"
module-udev-detect.discovered = "1"
device.icon_name = "camera-web-usb"
Profiles:
input:analog-mono: Analog Mono Input (sinks: 0, sources: 1, priority. 1)
off: Off (sinks: 0, sources: 0, priority. 0)
Active Profile: off

Card #2
Name: alsa_card.pci-0000_00_14.2
Driver: module-alsa-card.c
Owner Module: 6
Properties:
alsa.card = "2"
alsa.card_name = "HDA ATI SB"
alsa.long_card_name = "HDA ATI SB at 0xf9ff0000 irq 16"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:00:14.2"
sysfs.path = "/devices/pci0000:00/0000:00:14.2/sound/card2"
device.bus = "pci"
device.vendor.id = "1002"
device.vendor.name = "ATI Technologies Inc"
device.product.id = "4383"
device.product.name = "SBx00 Azalia (Intel HDA)"
device.form_factor = "internal"
device.string = "2"
device.description = "Internal Audio"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
Profiles:
output:analog-stereo: Analog Stereo Output (sinks: 1, sources: 0, priority. 6000)
output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (sinks: 1, sources: 1, priority. 6060)
output:analog-surround-40: Analog Surround 4.0 Output (sinks: 1, sources: 0, priority. 700)
output:analog-surround-40+input:analog-stereo: Analog Surround 4.0 Output + Analog Stereo Input (sinks: 1, sources: 1, priority. 760)
output:analog-surround-41: Analog Surround 4.1 Output (sinks: 1, sources: 0, priority. 800)
output:analog-surround-41+input:analog-stereo: Analog Surround 4.1 Output + Analog Stereo Input (sinks: 1, sources: 1, priority. 860)
output:analog-surround-50: Analog Surround 5.0 Output (sinks: 1, sources: 0, priority. 700)
output:analog-surround-50+input:analog-stereo: Analog Surround 5.0 Output + Analog Stereo Input (sinks: 1, sources: 1, priority. 760)
output:analog-surround-51: Analog Surround 5.1 Output (sinks: 1, sources: 0, priority. 800)
output:analog-surround-51+input:analog-stereo: Analog Surround 5.1 Output + Analog Stereo Input (sinks: 1, sources: 1, priority. 860)
output:analog-surround-71: Analog Surround 7.1 Output (sinks: 1, sources: 0, priority. 700)
output:analog-surround-71+input:analog-stereo: Analog Surround 7.1 Output + Analog Stereo Input (sinks: 1, sources: 1, priority. 760)
output:iec958-stereo: Digital Stereo Duplex (IEC958) (sinks: 1, sources: 0, priority. 5500)
output:iec958-stereo+input:analog-stereo: Digital Stereo (IEC958) Output + Analog Stereo Input (sinks: 1, sources: 1, priority. 5560)
input:analog-stereo: Analog Stereo Input (sinks: 0, sources: 1, priority. 60)
off: Off (sinks: 0, sources: 0, priority. 0)
Active Profile: output:analog-stereo+input:analog-stereo

BugRocks1
23rd May 2010, 06:44 AM
i DO have pulse; but i don't think that i can use it if i don't have its host interface available.

Yes you can! (LoL)

Alsa is configured to use pulse, it pipes everything though it, so if the host is alsa and the recording is pulse it should just work.

But there is something strange, because the pacmd should have found pulseaudio running and it did not.

You should have two configuration files in /etc/alsa:


alsactl.conf

$ cat /etc/alsa/alsactl.conf
#
# ALSA library configuration file for alsactl tool
# (/usr/share/alsa tree is not necessary for alsactl)
#

ctl.hw {
@args [ CARD ]
@args.CARD {
type string
default "0"
}
type hw
card $CARD
}

pulse-default.conf

$ cat /etc/alsa/pulse-default.conf
# PulseAudio plugin configuration
# $Id: pulse-default.conf,v 1.3 2008/03/09 15:50:49 lkundrak Exp $

# Let's create a virtual device "pulse" for mixer and PCM

pcm.pulse {
type pulse
hint {
description "PulseAudio Sound Server"
}
}

ctl.pulse {
type pulse
hint {
description "PulseAudio Sound Server"
}
}


# Let's make it the default!

pcm.!default {
type pulse
hint {
description "Default"
}
}

ctl.!default {
type pulse
hint {
description "Default"
}
}

Vector
23rd May 2010, 06:52 AM
Ha, i already had this, which i got from googling this:


...
pcm.fileout {
type file;
slave {
pcm "hw:0"
}
file "/home/Vector/Desktop/pcmout";
format "raw";
}

I'll use what you gave me and see what happens...

Thanx!

BugRocks1
23rd May 2010, 07:04 AM
You load the loopback module twice, see there.

Module #23
Name: module-loopback
Argument:
Usage counter: n/a
Properties:
module.author = "Pierre-Louis Bossart"
module.description = "Loopback from source to sink"
module.version = "0.9.21"

Module #24
Name: module-loopback
Argument:
Usage counter: n/a
Properties:
module.author = "Pierre-Louis Bossart"
module.description = "Loopback from source to sink"
module.version = "0.9.21"

You have 3 sound cards:


Card #0
Name: alsa_card.usb-Samson_Technologies_Samson_C01U-00
Driver: module-alsa-card.c
Owner Module: 4
Properties:
alsa.card = "1"
alsa.card_name = "Samson C01U"
alsa.long_card_name = "Samson Technologies Samson C01U at usb-0000:00:13.1-1, full"
alsa.driver_name = "snd_usb_audio"
device.bus_path = "pci-0000:00:13.1-usb-0:1:1.0"
sysfs.path = "/devices/pci0000:00/0000:00:13.1/usb3/3-1/3-1:1.0/sound/card1"
udev.id = "usb-Samson_Technologies_Samson_C01U-00"
device.bus = "usb"
device.vendor.id = "17a0"
device.vendor.name = "Samson Technologies "
device.product.id = "0001"
device.product.name = "Samson C01U "
device.serial = "Samson_Technologies_Samson_C01U"
device.string = "1"
device.description = "Samson C01U "
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-usb"
Profiles:
input:analog-mono: Analog Mono Input (sinks: 0, sources: 1, priority. 1)
input:analog-stereo: Analog Stereo Input (sinks: 0, sources: 1, priority. 60)
input:iec958-stereo: Digital Stereo (IEC958) Input (sinks: 0, sources: 1, priority. 55)
off: Off (sinks: 0, sources: 0, priority. 0)
Active Profile: input:analog-stereo

Card #1
Name: alsa_card.usb-046d_09a1_5CE01550-02
Driver: module-alsa-card.c
Owner Module: 5
Properties:
alsa.card = "0"
alsa.card_name = "USB Device 0x46d:0x9a1"
alsa.long_card_name = "USB Device 0x46d:0x9a1 at usb-0000:00:13.5-4, high speed"
alsa.driver_name = "snd_usb_audio"
device.bus_path = "pci-0000:00:13.5-usb-0:4:1.2"
sysfs.path = "/devices/pci0000:00/0000:00:13.5/usb1/1-4/1-4:1.2/sound/card0"
udev.id = "usb-046d_09a1_5CE01550-02"
device.bus = "usb"
device.vendor.id = "046d"
device.vendor.name = "Logitech, Inc."
device.product.id = "09a1"
device.product.name = "QuickCam Communicate MP/S5500"
device.serial = "046d_09a1_5CE01550"
device.form_factor = "webcam"
device.string = "0"
device.description = "QuickCam Communicate MP/S5500"
module-udev-detect.discovered = "1"
device.icon_name = "camera-web-usb"
Profiles:
input:analog-mono: Analog Mono Input (sinks: 0, sources: 1, priority. 1)
off: Off (sinks: 0, sources: 0, priority. 0)
Active Profile: off

Card #2
Name: alsa_card.pci-0000_00_14.2
Driver: module-alsa-card.c
Owner Module: 6
Properties:
alsa.card = "2"
alsa.card_name = "HDA ATI SB"
alsa.long_card_name = "HDA ATI SB at 0xf9ff0000 irq 16"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:00:14.2"
sysfs.path = "/devices/pci0000:00/0000:00:14.2/sound/card2"
device.bus = "pci"
device.vendor.id = "1002"
device.vendor.name = "ATI Technologies Inc"
device.product.id = "4383"
device.product.name = "SBx00 Azalia (Intel HDA)"
device.form_factor = "internal"
device.string = "2"
device.description = "Internal Audio"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"


I see a possible configuration problem here, if you are not careful choosing the output it will not play or record anything.

---------- Post added at 10:04 PM CDT ---------- Previous post was at 09:56 PM CDT ----------


Ha, i already had this, which i got from googling this:


...
pcm.fileout {
type file;
slave {
pcm "hw:0"
}
file "/home/Vector/Desktop/pcmout";
format "raw";
}

I'll use what you gave me and see what happens...

Thanx!

Your default should be 2, the card 0(hw:0) is suspended or something and your pci card is the number 2, the 0(Samsom) and 1(quickcam) cards are USB something.

So the configuration you showed would be sending all sound to the samsom hardware which I don't have any idea what it is, your sound card is registered as 2 it should be hw:2 in there not hw:0.

Vector
23rd May 2010, 07:38 AM
I noticed this interesting line in cat /etc/modprobe.d/dist-alsa.conf:


[^v^]# cat /etc/modprobe.d/dist-alsa.conf
# ALSA Sound Support
#
# We want to ensure that snd-seq is always loaded for those who want to use
# the sequencer interface, but we can't do this automatically through udev
# at the moment...so we have this rule (just for the moment).
#
# Remove the following line if you don't want the sequencer.

install snd-pcm /sbin/modprobe --ignore-install snd-pcm && /sbin/modprobe snd-seq
[^v^]#

BugRocks1
23rd May 2010, 08:35 AM
Ok, saw the video.

First install this apps:


# yum install pavucontrol gmixer

Pavucontrol have much more options then the gnome-volume-control.


In audacity the right recording setting is "pulse", you mark that and start recording and pause it, and keep something playing, then open pavucontrol and see in the tab "recording" if there is a stream.

BugRocks1
23rd May 2010, 08:41 AM
In my audacity that is a different version then yours I have:

Playback = ALSA: default
Recording = ALSA: pulse

BugRocks1
23rd May 2010, 08:50 AM
Now in pavucontrol you go to playback and check what sink(output) it is beeing used so you can choose the right monitor in the next tab(recording).

In this case it is playing on the "Internal Audio Analog Surround 4.1"

BugRocks1
23rd May 2010, 08:52 AM
Now that you know where the output is you go to the pavucontrol tab named "recording" and set it to record on that monitor.

Vector
23rd May 2010, 08:56 AM
Yeah, you have the last version. I'm guessing you're on F10 or F11? I'm on f12.

As far as pav, i installed it/them, and opened audacity and selected pulse and started recording. I looked at pav, and switched between settings, and almost gave up before stumbling across the right combinations.

BugRocks1
23rd May 2010, 08:59 AM
That is all it is to it, if there is no sound still, then some configuration file is missing or broken.

If you can hear it and it shows up in pavucontrol you can record it.

---------- Post added at 11:59 PM CDT ---------- Previous post was at 11:58 PM CDT ----------

I'm using F12 too LoL

Why does everybody use a different audacity?

Vector
23rd May 2010, 09:01 AM
I'm using 64-bit; perhaps you have 32-bit?

BugRocks1
23rd May 2010, 09:03 AM
Yay!

Victory!

:)

---------- Post added at 12:03 AM CDT ---------- Previous post was at 12:02 AM CDT ----------

Yes, 32 bits, I like 32 bits.


$ uname -r
2.6.32.12-115.fc12.i686.PAE

Vector
23rd May 2010, 09:04 AM
Hey, thanks a bunch for that. I normally wouldn't need something like this, but i love creepy music, and that game that i used to play as a kid has some cool music in it that i wanted to record (i used to do the same for Silent Hill's music, before i realized they were publishing the sountracks, so then i just got them instead of recording it).

BugRocks1
23rd May 2010, 09:07 AM
Saw the videos, delete them when you like the printscreens shows how to do it also, so is a bit of overlapping, still it would be nice to have them on youtube or something to have a reference most people don't get it just by text.

I have to make an account somewhere to sign in for youtube or vimeo and start posting tutorials.

Vector
23rd May 2010, 09:09 AM
HEY! If you want to make an account a LinuxIntro.com i will give you L1 Maintainer access (moderator) so that you can write your own articles; it would be a pleasure: you obviously know what you're talking about. You can include your youtube videos in your articles ;) (eg, like this one here: http://linuxintro.com/?a=WCMS_Page_Display&id=874454001223463310 )

BugRocks1
23rd May 2010, 09:45 AM
That is nice I will think about it, thanks :)

lenzi
23rd May 2010, 09:49 AM
Hi I guess you already got a solution I just want to share my own solution to this.

I use Pulse Audio Volume Control.
So I start audacity and Volume Control and go to the Recording tab in the Volume Control.
As soon as I hit record in Audacity it will show up in the volume control and I can choose there what to record (Internal Analog Stereo to use the built in mic or Monitor of Internal Audio Analog Stereo to record "what you hear")

I hope that makes sense =)