Recording Computer Playback on Linux Issue

Help for Audacity on GNU/Linux.
Forum rules
ImageThis forum is for Audacity on GNU/Linux.
Please state:
  • which version of Linux you are using,
  • the exact three-section version number of Audacity from Help menu > About Audacity,
  • whether you installed your distribution's release, PPA version, or compiled Audacity from source code.

Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade (see https://www.audacityteam.org/download/).
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
willypuzzle
Posts: 22
Joined: Sat May 11, 2013 9:21 pm
Operating System: Please select

Recording Computer Playback on Linux Issue

Post by willypuzzle » Sat May 11, 2013 9:58 pm

I would follow this tutorial http://manual.audacityteam.org/man/Tuto ... k_on_Linux

I assured PulseAudio runs with:

Code: Select all

$pstree -p | grep pulse
        |-pulseaudio(2354)-+-gconf-helper(2366)
        |                  |-{pulseaudio}(2362)
        |                  |-{pulseaudio}(2363)
        |                  `-{pulseaudio}(2365)
but when I try to set "pulse" on Device Toolbar it doesn't appear.
Instead voices as "pulse: Rear Mic: 0" or "pulse: Front Mic:0" appear.
but not "pulse" or "default" ...

Do you have any idea?

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Recording Computer Playback on Linux Issue

Post by steve » Sun May 12, 2013 2:35 am

Please post the output from "Help > Audio Device Info"
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

willypuzzle
Posts: 22
Joined: Sat May 11, 2013 9:21 pm
Operating System: Please select

Re: Recording Computer Playback on Linux Issue

Post by willypuzzle » Sun May 12, 2013 10:27 am

Code: Select all

==============================
Default capture device number: 14
Default playback device number: 14
==============================
Device ID: 0
Device name: HDA NVidia: ALC861 Analog (hw:0,0)
Host name: ALSA
Input channels: 2
Output channels: 8
Low Input Latency: 0.010667
Low Output Latency: 0.010667
High Input Latency: 0.042667
High Output Latency: 0.042667
Supported Rates:
    48000
    96000
==============================
Device ID: 1
Device name: HDA NVidia: ALC861 Digital (hw:0,1)
Host name: ALSA
Input channels: 0
Output channels: 2
Low Input Latency: -1.000000
Low Output Latency: 0.010667
High Input Latency: -1.000000
High Output Latency: 0.042667
Supported Rates:
    48000
    96000
==============================
Device ID: 2
Device name: HDA ATI HDMI: HDMI 0 (hw:1,3)
Host name: ALSA
Input channels: 0
Output channels: 2
Low Input Latency: -1.000000
Low Output Latency: 0.010667
High Input Latency: -1.000000
High Output Latency: 0.042667
Supported Rates:
    48000
==============================
Device ID: 3
Device name: sysdefault
Host name: ALSA
Input channels: 128
Output channels: 128
Low Input Latency: 0.042653
Low Output Latency: 0.042653
High Input Latency: 0.046440
High Output Latency: 0.046440
Supported Rates:
    8000
    9600
    11025
    16000
    22050
    32000
    44100
    48000
    88200
==============================
Device ID: 4
Device name: front
Host name: ALSA
Input channels: 0
Output channels: 8
Low Input Latency: -1.000000
Low Output Latency: 0.010667
High Input Latency: -1.000000
High Output Latency: 0.042667
Supported Rates:
    48000
    96000
==============================
Device ID: 5
Device name: surround40
Host name: ALSA
Input channels: 0
Output channels: 8
Low Input Latency: -1.000000
Low Output Latency: 0.010667
High Input Latency: -1.000000
High Output Latency: 0.042667
Supported Rates:
    48000
    96000
==============================
Device ID: 6
Device name: surround41
Host name: ALSA
Input channels: 0
Output channels: 128
Low Input Latency: -1.000000
Low Output Latency: 0.010667
High Input Latency: -1.000000
High Output Latency: 0.042667
Supported Rates:
    48000
    96000
==============================
Device ID: 7
Device name: surround50
Host name: ALSA
Input channels: 0
Output channels: 128
Low Input Latency: -1.000000
Low Output Latency: 0.010667
High Input Latency: -1.000000
High Output Latency: 0.042667
Supported Rates:
    48000
    96000
==============================
Device ID: 8
Device name: surround51
Host name: ALSA
Input channels: 0
Output channels: 8
Low Input Latency: -1.000000
Low Output Latency: 0.010667
High Input Latency: -1.000000
High Output Latency: 0.042667
Supported Rates:
    48000
    96000
==============================
Device ID: 9
Device name: surround71
Host name: ALSA
Input channels: 0
Output channels: 8
Low Input Latency: -1.000000
Low Output Latency: 0.010667
High Input Latency: -1.000000
High Output Latency: 0.042667
Supported Rates:
    48000
    96000
==============================
Device ID: 10
Device name: iec958
Host name: ALSA
Input channels: 0
Output channels: 2
Low Input Latency: -1.000000
Low Output Latency: 0.010667
High Input Latency: -1.000000
High Output Latency: 0.042667
Supported Rates:
    48000
    96000
==============================
Device ID: 11
Device name: spdif
Host name: ALSA
Input channels: 0
Output channels: 2
Low Input Latency: -1.000000
Low Output Latency: 0.010667
High Input Latency: -1.000000
High Output Latency: 0.042667
Supported Rates:
    48000
    96000
==============================
Device ID: 12
Device name: pulse
Host name: ALSA
Input channels: 32
Output channels: 32
Low Input Latency: 0.011610
Low Output Latency: 0.011610
High Input Latency: 0.046440
High Output Latency: 0.046440
Supported Rates:
    8000
    9600
    11025
    12000
    15000
    16000
    22050
    24000
    32000
    44100
    48000
    88200
    96000
    192000
==============================
Device ID: 13
Device name: dmix
Host name: ALSA
Input channels: 0
Output channels: 2
Low Input Latency: -1.000000
Low Output Latency: 0.042667
High Input Latency: -1.000000
High Output Latency: 0.042667
Supported Rates:
    48000
==============================
Device ID: 14
Device name: default
Host name: ALSA
Input channels: 32
Output channels: 32
Low Input Latency: 0.011610
Low Output Latency: 0.011610
High Input Latency: 0.046440
High Output Latency: 0.046440
Supported Rates:
    8000
    9600
    11025
    12000
    15000
    16000
    22050
    24000
    32000
    44100
    48000
    88200
    96000
    192000
==============================
Selected capture device: 14 - default
Selected playback device: 14 - default
Supported Rates:
    8000
    9600
    11025
    12000
    15000
    16000
    22050
    24000
    32000
    44100
    48000
    88200
    96000
    192000
==============================
Available mixers:
==============================
Available capture sources:
0 - Rear Mic:0
1 - Front Mic:0
2 - Line:0
3 - CD:0
==============================
Available playback volumes:
0 - PCM:0
1 - CD:0
2 - Beep:0
==============================
Capture volume is native
Playback volume is native

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Recording Computer Playback on Linux Issue

Post by steve » Sun May 12, 2013 4:24 pm

Device ID: 12
Device name: pulse

That should be available in the Device Toolbar
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

willypuzzle
Posts: 22
Joined: Sat May 11, 2013 9:21 pm
Operating System: Please select

Re: Recording Computer Playback on Linux Issue

Post by willypuzzle » Sun May 12, 2013 4:59 pm

It's not among input devices. It's only available between output devices.
I attached a screenshots about it.
Attachments
Audacity - Input -Output Devices .jpg
A show about input and output devices
Audacity - Input -Output Devices .jpg (82.54 KiB) Viewed 6825 times

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Recording Computer Playback on Linux Issue

Post by steve » Mon May 13, 2013 11:53 am

You may need to edit your .asoundrc file.
Which Linux distribution are you using?
Is PulseAudio installed by default or did you have to install it yourself?
Do you have a (hidden) file called .asoundrc in your home folder?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

willypuzzle
Posts: 22
Joined: Sat May 11, 2013 9:21 pm
Operating System: Please select

Re: Recording Computer Playback on Linux Issue

Post by willypuzzle » Mon May 13, 2013 12:02 pm

I have to edit, how?
I use Ubuntu precise 12.04 with xfce4
PulseAudio is installed by default.
I don't have .asoundrc file in my home folder ...

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Recording Computer Playback on Linux Issue

Post by steve » Mon May 13, 2013 12:24 pm

Open a Terminal window and enter:

Code: Select all

alsamixer
Then press the F4 key.
If possible, please post a screenshot (otherwise, please describe what is shown).
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

willypuzzle
Posts: 22
Joined: Sat May 11, 2013 9:21 pm
Operating System: Please select

Re: Recording Computer Playback on Linux Issue

Post by willypuzzle » Mon May 13, 2013 1:14 pm

Ok.

NOTE:
As <Input Source> I have two choices, Line (in the picture) and CD (not in the picture)
Attachments
Alsamixer caputer devices - screenshot.jpg
alsamixer capture screenshot
Alsamixer caputer devices - screenshot.jpg (46.53 KiB) Viewed 6694 times

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Recording Computer Playback on Linux Issue

Post by steve » Mon May 13, 2013 2:45 pm

Interesting. When PulseAudio is properly installed it should be the default "sound card", but on your system it clearly isn't.

This is my .asoundrc file, try it on your machine - if it works, great, if it doesn't you can easily delete it again:

Code: Select all

pcm.pulse {
    type pulse
}
ctl.pulse {
    type pulse
}
pcm.!default {
    type pulse
}
ctl.!default {
    type pulse
}

# Virtual monitor "pulse"
pcm.StereoMix {
type pulse
device alsa_output.pci-0000_00_1b.0.analog-stereo.monitor
}

ctl.StereoMix {
type pulse
device alsa_output.pci-0000_00_1b.0.analog-stereo.monitor
}

Copy and paste the above into a new file in your home directory, then name it ".asoundrc" (without quotes but with the leading dot).
Reboot the computer.
Then run the following and post the output:

Code: Select all

pacmd
list-sources
The first command starts a simple command line program for communicating with PulseAudio.
The second command asks PulseAudio to list all recording devices.
To quite from pacmd use Ctrl+C
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Post Reply