1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 13:10:33 +02:00

home: services: pulseaudio-rtp-sink: Use a fixed sample rate.

* gnu/home/services/sound.scm (pulseaudio-rtp-sink-shepherd-services): Add
‘rate’ parameter for ‘module-rtp-send’.

Change-Id: Ic734ea241ee85147f949196dd3f7d58a81525388
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Merges: #7464
This commit is contained in:
Ludovic Courtès
2026-03-25 16:06:09 +01:00
parent 365dbc5b1c
commit e3a708ed79

View File

@@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU ;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2023 Ludovic Courtès <ludo@gnu.org> ;;; Copyright © 2023, 2026 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2023 Brian Cully <bjc@spork.org> ;;; Copyright © 2023 Brian Cully <bjc@spork.org>
;;; Copyright © 2024 Janneke Nieuwenhuizen <janneke@gnu.org> ;;; Copyright © 2024 Janneke Nieuwenhuizen <janneke@gnu.org>
;;; ;;;
@@ -193,8 +193,10 @@ PulseAudio clients to use PipeWire transparently.")
load-module module-null-sink \ load-module module-null-sink \
sink_name=rtp sink_properties=\"device.description='RTP network output'\"\n" sink_name=rtp sink_properties=\"device.description='RTP network output'\"\n"
sock) sock)
;; Use a fixed sample rate to match what the receiving
;; end is likely to expect.
(display (string-append "\ (display (string-append "\
load-module module-rtp-send source=rtp.monitor" load-module module-rtp-send source=rtp.monitor rate=44100"
(if destination-ip (if destination-ip
(string-append (string-append
" destination_ip=" " destination_ip="