From patchwork Mon Mar 17 12:43:41 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Janneke Nieuwenhuizen X-Patchwork-Id: 40279 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id F0DD727BBEA; Mon, 17 Mar 2025 12:44:48 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 76CBE27BBE9 for ; Mon, 17 Mar 2025 12:44:48 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tu9pX-0006R5-5N; Mon, 17 Mar 2025 08:44:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tu9p9-0006Jw-Po for guix-patches@gnu.org; Mon, 17 Mar 2025 08:44:07 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tu9p6-0007US-V6 for guix-patches@gnu.org; Mon, 17 Mar 2025 08:44:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=/YpfOIWjrU0piG5eCJTqVLvWfKMbv2E0siOkwwsznz4=; b=kqi+pp04DddFDO78wNm+5IDW3pYoCW364S6ppoznyRz8qv6vwx1GADc+D6bzczQ76HjtzZLEvxgM5fmXsWaNzEwpdIe0LN43lcKsHlqgalxA2H1phC2y11JW+Nuqr/mgd6x5MAYz0TqYkVhf8SsFhHujKJe/IpZFxEmDfowgZ0eiLzs3VpdY1QhshmSy/IQmraSbQ39sSE1ueesRilYCzweDt5MY4xUbyQhki+S2LhtGGHFJ9rc35q/CuU/W3JjErhQfMf0W2pOYtYrEbCDe3E+wyPwIleAiewQow+S0AXF/+hyCwTedVt5kmmL86RhPnKZkyWytET2juS9Oem4aMw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tu9p6-0006TG-2f for guix-patches@gnu.org; Mon, 17 Mar 2025 08:44:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#77069] [PATCH] gnu: Add apulse. Resent-From: Janneke Nieuwenhuizen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 17 Mar 2025 12:44:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 77069 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 77069@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.174221544224861 (code B ref -1); Mon, 17 Mar 2025 12:44:03 +0000 Received: (at submit) by debbugs.gnu.org; 17 Mar 2025 12:44:02 +0000 Received: from localhost ([127.0.0.1]:56606 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tu9p1-0006SQ-As for submit@debbugs.gnu.org; Mon, 17 Mar 2025 08:44:01 -0400 Received: from lists.gnu.org ([2001:470:142::17]:38142) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tu9ow-0006Qr-3h for submit@debbugs.gnu.org; Mon, 17 Mar 2025 08:43:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tu9oq-0005r5-Es for guix-patches@gnu.org; Mon, 17 Mar 2025 08:43:48 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tu9op-0007Pj-EB; Mon, 17 Mar 2025 08:43:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=/YpfOIWjrU0piG5eCJTqVLvWfKMbv2E0siOkwwsznz4=; b=DpZfuXpEmFEjz3 r2LejjO4n3M2oSqSUKP6vPoAl09tb/VRr89IlzDDRRc2fFlZh+uL0BQA8gPFPEQr+X46Uq1J7y8d1 Pez2+/Mm6hWD+Dbqygpw7TjSCICpmrpjnovWr7q9GoUrVt8VYzJ9QK5ToY9v2UiJPBm/hOn8qmckk 6J6XetZDDW+vTDvSlh574aGvrfEyIlViFkyHh7124hPnnpkE6h/kw6dhyvzxG0nJy3pNOgJZ8AXMF twc3gCwj0bFVd+XsDUqFUGC5u+mLMo2TeIbf8WIm+oRFTm7zVztoLRlnZjgzm6QDkvEGPPlLg5uNU iu1ztl6aK9nOxkMgMUHQ==; From: Janneke Nieuwenhuizen Date: Mon, 17 Mar 2025 13:43:41 +0100 Message-ID: <9c0d589567233208b07c6cba030fda5aa83d408c.1742215393.git.janneke@gnu.org> X-Mailer: git-send-email 2.48.1 MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/pulseaudio.scm (apulse): New variable. Change-Id: I3ff6c9b42896d0ae6bfa708a6d8568034e876b7c --- gnu/packages/pulseaudio.scm | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) base-commit: 98be320183579b3d09cf4059e86a9781485628b4 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 ;;; Copyright © 2021 Brice Waegeneire ;;; Copyright © 2022 Maxim Cournoyer +;;; Copyright © 2025 Janneke Nieuwenhuizen ;;; ;;; 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)))