[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1041114: sox error and audio glitch when -t not specified and libsox-fmt-pulse is not installed



Package: sox
Version: 14.4.2+git20190427-3.5
Severity: normal

Dear Maintainer,

When `-t` is not specified then sox attempts to probe the audio driver
as described at
https://groups.google.com/g/linux.debian.bugs.dist/c/jCqdwFWPUKk/m/xi1AThVtMwkJ

According to the list in that discussion, pulseaudio is the first driver
to be probed on Linux. If libsox-fmt-pulse is not installed, then the
probe fails with the error `play WARN alsa: can't encode 0-bit Unknown
or not applicable`, and there is an audible pop glitch before the actual
audio is played.

$ play -t raw -r 48k -e signed -b 16 -c 1 dummy
play WARN alsa: can't encode 0-bit Unknown or not applicable

(note libsox-fmt-pulse was not installed by default on my system, the
alsa driver was, so this warning and audio glitch would occur every
time by default)

-- System Information:
Debian Release: 12.0
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386


Kernel: Linux 5.19.0-1-amd64 (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN, TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8),
LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages sox depends on:
ii  libc6            2.36-9
ii  libsox-fmt-alsa  14.4.2+git20190427-3.5
ii  libsox-fmt-base  14.4.2+git20190427-3.5
ii  libsox3          14.4.2+git20190427-3.5

sox recommends no packages.

Versions of packages sox suggests:
pn  libsox-fmt-all  <none>

-- no debconf information


Reply to: