From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: bug#40832: Audacity does not work with PulseAudio Date: Tue, 28 Apr 2020 18:39:08 -0400 Message-ID: <20200428223908.GB31840@jasmine.lan> References: <20200424213727.GA11710@jasmine.lan> <20200424231524.GA16696@jasmine.lan> <87imhjs3oz.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:56036) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTYtX-0007N4-Fn for bug-guix@gnu.org; Tue, 28 Apr 2020 18:40:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jTYtW-0004hv-RZ for bug-guix@gnu.org; Tue, 28 Apr 2020 18:40:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58516) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jTYtW-0004fq-EP for bug-guix@gnu.org; Tue, 28 Apr 2020 18:40:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jTYtW-00078G-9q for bug-guix@gnu.org; Tue, 28 Apr 2020 18:40:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Content-Disposition: inline In-Reply-To: <87imhjs3oz.fsf@gnu.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org Sender: "bug-Guix" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 40832@debbugs.gnu.org On Tue, Apr 28, 2020 at 11:25:32PM +0200, Ludovic Courtès wrote: > Could it be that the problem is in Audacity and not in alsa-lib? I'm not 100% sure but I don't think so. The function snd_config_hooks_call() is from alsa-lib I can't find any way in alsa-lib for it work in this case, even though it aims to work by default on systems with plugins in '/usr/lib/alsa-lib' or similar. The lookup is performed in alsa-lib's 'src/dlmisc.c', by the function snd_dlopen(), and it only looks in the hard-coded path provided by the ALSA_PLUGIN_DIR C object macro, which ends up being alsa-lib's own store directory. > I can do this with mpg123: > > --8<---------------cut here---------------start------------->8--- > $ cat ~/.asoundrc > pcm.!default { > type pulse > } > $ mpg123 -o alsa … > --8<---------------cut here---------------end--------------->8--- > > and the sound goes through PulseAudio. Is that on Guix System or another distro? On Guix System, this is handled by the service alsa-service-type. On Debian, using mpg123 from Guix, and with your ~/.asoundrc, it fails in the same way as Audacity: ------ % mpg123 -o alsa ... High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3 version 1.25.13; written and copyright by Michael Hipp and others free software (LGPL) without any warranty but with best wishes ALSA lib conf.c:3683:(snd_config_hooks_call) Cannot open shared library libasound_module_conf_pulse.so (/gnu/store/nyylgcnzmbw8wrn4sna2crl0g7zxxh33-alsa-lib-1.2.2/lib/alsa-lib/libasound_module_conf_pulse.so: libasound_module_conf_pulse.so: cannot open shared object file: No such file or directory) ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM default [src/libout123/modules/alsa.c:181] error: cannot open device default [src/libout123/libout123.c:455] error: Found no driver out of [alsa] working with device . main: [src/mpg123.c:314] error: out123 error 3: failure loading driver module ------