GNU bug report logs - #77069
[PATCH] gnu: Add apulse.

Previous Next

Package: guix-patches;

Reported by: Janneke Nieuwenhuizen <janneke <at> gnu.org>

Date: Mon, 17 Mar 2025 12:44:03 UTC

Severity: normal

Tags: patch

Done: 宋文武 <iyzsong <at> envs.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Janneke Nieuwenhuizen <janneke <at> gnu.org>
To: 77069 <at> debbugs.gnu.org
Subject: [bug#77069] [PATCH] gnu: Add apulse.
Date: Mon, 17 Mar 2025 13:43:41 +0100
* gnu/packages/pulseaudio.scm (apulse): New variable.

Change-Id: I3ff6c9b42896d0ae6bfa708a6d8568034e876b7c
---
 gnu/packages/pulseaudio.scm | 38 +++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/gnu/packages/pulseaudio.scm b/gnu/packages/pulseaudio.scm
index 855ccf5da7e..7315bef579a 100644
--- a/gnu/packages/pulseaudio.scm
+++ b/gnu/packages/pulseaudio.scm
@@ -16,6 +16,7 @@
 ;;; Copyright © 2020 Marius Bakke <marius <at> gnu.org>
 ;;; Copyright © 2021 Brice Waegeneire <brice <at> waegenei.re>
 ;;; Copyright © 2022 Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
+;;; Copyright © 2025 Janneke Nieuwenhuizen <janneke <at> gnu.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -522,3 +523,40 @@ (define-public noisetorch
 input to torch the sound of your mechanical keyboard, computer fans, trains
 and the likes.")
     (license l:gpl3)))
+
+(define-public apulse
+  (package
+    (name "apulse")
+    (version "0.1.13")
+    (home-page "https://github.com/i-rinat/apulse")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url home-page)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1p6fh6ah5v3qz7dxhcsixx38bxg44ypbim4m03bxk3ls5i9xslmn"))))
+    (arguments
+     (list #:tests? #f                  ;no tests
+           #:configure-flags
+           ;; Ensure the RUNPATH contains the .../lib/apulse directory.
+           #~(list (string-append "-DCMAKE_SHARED_LINKER_FLAGS=-Wl,-rpath="
+                                  #$output "/lib/apulse:"))))
+    (native-inputs (list pkg-config))
+    (inputs (list alsa-lib glib))
+    (build-system cmake-build-system)
+    (synopsis "PulseAudio emulation for ALSA")
+    (description " Apulse provides an alternative partial implementation of
+the PulseAudio API.  It consists of a loader script and a number of shared
+libraries with the same names as from original PulseAudio, so applications
+could dynamically load them and think they are talking to PulseAudio.
+
+Internally, no separate sound mixing daemon is used.  Instead, apulse relies
+on ALSA's dmix, dsnoop, and plug plugins to handle multiple sound sources and
+capture streams running at the same time.  dmix plugin muxes multiple playback
+streams; dsnoop plugin allow multiple applications to capture from a single
+microphone; and plug plugin transparently converts audio between various
+sample formats, sample rates and channel numbers.")
+    (license l:expat)))

base-commit: 98be320183579b3d09cf4059e86a9781485628b4
-- 
2.48.1





This bug report was last modified 119 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.