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

Bug#1020485: sox: Please add a SoX sndio I/O library



Source: sox
Version: 14.4.2+git20190427-3
Severity: wishlist
Tags: patch
X-Debbugs-Cc: jobbautista9@protonmail.com

Dear Maintainer,

It would be nice to have a libsox-fmt-sndio package like libsox-fmt-alsa and
libsox-fmt-pulse for us sndio users. While libsox-fmt-ao, which uses libao which
also supports sndio is perfectly fine for audio output, it doesn't support audio
input, which means I can't record my microphone's input using sndio.

Upstream already has code for sndio, it is just matter of adding one more build-
time dependency and explicitly installing libsox_fmt_sndio.so to /usr/lib.

Below is a simple patch doing that. Thanks


--- debian/control
+++ debian/control
@@ -21,6 +21,7 @@
                libpulse-dev,
                libsamplerate0-dev,
                libsndfile1-dev (>= 1.0.12),
+               libsndio-dev,
                libtwolame-dev,
                libvorbis-dev,
                libwavpack-dev
@@ -156,6 +157,18 @@
  .
  PulseAudio: https://www.freedesktop.org/wiki/Software/PulseAudio/
 
+Package: libsox-fmt-sndio
+Architecture: any
+Multi-Arch: same
+Section: libs
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Description: SoX alsa format I/O library
+ SoX is the swiss army knife of sound processing.
+ .
+ This package contains the SoX sndio format I/O library.
+ .
+ sndio: http://www.sndio.org/
+
 Package: libsox-fmt-all
 Architecture: any
 Multi-Arch: same
@@ -166,6 +179,7 @@
          libsox-fmt-mp3 (= ${binary:Version}),
          libsox-fmt-oss (= ${binary:Version}),
          libsox-fmt-pulse (= ${binary:Version}),
+         libsox-fmt-sndio (= ${binary:Version}),
          ${misc:Depends}
 Description: All SoX format libraries
  SoX is the swiss army knife of sound processing.

--- /dev/null
+++ debian/libsox-fmt-sndio.install
@@ -0,0 +1 @@
+usr/lib/*/sox/libsox_fmt_sndio.so*


-- System Information:
Debian Release: bookworm/sid
  APT prefers unreleased
  APT policy: (1, 'unreleased'), (1, 'experimental'), (1, 'unstable')
merged-usr: no
Architecture: amd64 (x86_64)
Foreign Architectures: i386, hurd-i386

Kernel: Linux 5.19.0-1-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN, TAINT_FIRMWARE_WORKAROUND, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_PH.UTF-8, LC_CTYPE=en_PH.UTF-8 (charmap=UTF-8), LANGUAGE=en_PH:en
Shell: /bin/sh linked to /bin/dash
Init: OpenRC (via /run/openrc), PID 1: init
LSM: AppArmor: enabled


Reply to: