Page 1 of 1

Sound devices & rates in Audacity changed, now incorrect

Posted: 17 Apr 2014 13:32
by TeaSwigger
The sound card (ASUS Xonar Essence ST) used to be listed under both record and playback (using ALSA, pulseaudio has been purged from my system) in Audacity and it listed "actual rate" as = the working rate. Now after the latest UP, it lists "sysdefault" and "sysdefault: Mic Jack" for options and 176400 as "actual rate." Audio device info lists:

Code: Select all

==============================
Default capture device number: 0
Default playback device number: 0
==============================
Device ID: 0
Device name: sysdefault
Host name: ALSA
Input channels: 128
Output channels: 128
Low Input Latency: 0.021333
Low Output Latency: 0.021333
High Input Latency: 0.021333
High Output Latency: 0.021333
Supported Rates:
    8000
    9600
    11025
    16000
    22050
    32000
    44100
    48000
    88200
    176400
    352800
==============================
Device ID: 1
Device name: dmix
Host name: ALSA
Input channels: 0
Output channels: 2
Low Input Latency: -1.000000
Low Output Latency: 0.021333
High Input Latency: -1.000000
High Output Latency: 0.021333
Supported Rates:
    48000
==============================
Device ID: 2
Device name: /dev/dsp
Host name: OSS
Input channels: 16
Output channels: 16
Low Input Latency: 0.008707
Low Output Latency: 0.008707
High Input Latency: 0.034830
High Output Latency: 0.034830
Supported Rates:
==============================
Selected capture device: 0 - sysdefault
Selected playback device: 0 - sysdefault
Supported Rates:
    8000
    9600
    11025
    16000
    22050
    32000
    44100
    48000
    88200
    176400
    352800
==============================
Available mixers:
==============================
Available capture sources:
0 - Mic Jack:0
1 - Front Panel:0
==============================
Available playback volumes:
0 - Master:0
1 - Analog Input Monitor:0
2 - Digital Input Monitor:0
==============================
Capture volume is emulated
Playback volume is emulated
...which can't be right, as for one thing, the card supports 96000 and 192000.

How can I get the correct options and sample rates back? :?:

Info:

Code: Select all

    inxi -Fzx
    System:    Host: [mines] Kernel: 3.13-1-amd64 x86_64 (64 bit, gcc: 4.8.2) Desktop: N/A Distro: SolydXK 1 testing
    Machine:   Mobo: Gigabyte model: GA-MA770-UD3 version: x.x Bios: Award version: FG date: 12/29/2009
    CPU:       Quad core AMD Phenom 9850 (-MCP-) cache: 2048 KB flags: (lm nx sse sse2 sse3 sse4a svm) bmips: 20091.4
               Clock Speeds: 1: 1250.00 MHz 2: 1250.00 MHz 3: 1250.00 MHz 4: 2500.00 MHz
    Graphics:  Card: NVIDIA G98 [GeForce 8400 GS Rev. 2] bus-ID: 01:00.0
               X.org: 1.15.0 driver: nvidia tty size: 110x36 Advanced Data: N/A for root
    Audio:     Card: C-Media CMI8788 [Oxygen HD Audio] driver: snd_virtuoso port: ce00 bus-ID: 03:07.0
               Sound: Advanced Linux Sound Architecture ver: k3.13-1-amd64
    Network:   Card: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
               driver: r8169 ver: 2.3LK-NAPI port: de00 bus-ID: 02:00.0
               IF: eth1 state: up speed: 100 Mbps duplex: full mac: <filter>
    Drives:    HDD Total Size: 2000.4GB (83.6% used) 1: id: /dev/sda model: ST2000DL003 size: 2000.4GB temp: 34C
    Partition: ID: / size: 16G used: 12G (79%) fs: ext4 ID: /home size: 38G used: 11G (31%) fs: ext4
               ID: swap-1 size: 0.51GB used: 0.00GB (1%) fs: swap
    Sensors:   None detected - is lm-sensors installed and configured?
    Info:      Processes: 167 Uptime: 1:33 Memory: 1171.7/3963.7MB Runlevel: 2 Gcc sys: 4.8.2 Client: Shell (sudo) inxi: 1.9.17

Re: Sound devices & rates in Audacity changed, now incorrect

Posted: 25 Apr 2014 09:22
by TeaSwigger
Well I tried getting help at the audacity forums, but (by the sole person responding) I've been mostly politely pointed back to the distro. The audacity!

All I'm concerned with is that Audacity is capturing the sound at 24/96 without prior resampling having occurred.

After I first installed SolydK (which was the first SolydK), I had sound problems and our noble founder with the rascally handle suggested removing pulseaudio with sudo apt-get remove pulseaudio-* so I did. It seems that doesn't remove it all because trying to use ALSAmixer returns this:

Code: Select all

    ~ $ alsamixer
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

cannot open mixer: Connection refused
So I searched for anything pulseaudio left. There are a few libs and trying to remove them results in a prompt that most of SolydK will be going bye-bye if you do.

So what now?

Re: Sound devices & rates in Audacity changed, now incorrect

Posted: 27 Apr 2014 12:56
by TeaSwigger
A bigger problem: hardware playthrough isn't working and the sound chops up horribly (visible on the waveform and audible) when software playthrough is selected, so I can't monitor the sound while recording. :?

Re: Sound devices & rates in Audacity changed, now incorrect

Posted: 28 Apr 2014 02:40
by TeaSwigger
So I found out how to get ALSAmixer to work without re-installing pulseaudio and therein re-enable hardware playthrough, fixing the above issue. Maybe it's known to everyone but me, but for anyone else:

There is a configuration file, /etc/asound.conf. This was still configured for pulseaudio even after pulseaudio was removed. By default it contained:

Code: Select all

pcm.pulse {
    type pulse
}
ctl.pulse {
    type pulse
}
pcm.!default {
    type pulse
}
ctl.!default {
    type pulse
}
I had to change it to:

Code: Select all

defaults.ctl.card 0
defaults.pcm.card 0
and comment out the rest (put the pound # in front of each line). The number (0 in this case) should be whatever your device is. Now restart and ALSAmixer works. I was able to toggle the needed features.

A weird thing about it is that a media player, DeadBeef, has no problem; it finds and displays all the options to directly access the card like Audacity used to (but still doesn't).