From 394748f8ce6e99eb7ad392fa62631c42a2425d73 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Thu, 25 Jun 2020 19:23:16 +0200 Subject: DAW: make pulseaudio use 48 KHz sample rate, like JACK and ALSA --- make_slackware_live.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/make_slackware_live.sh b/make_slackware_live.sh index 38bd6ca..2914d39 100755 --- a/make_slackware_live.sh +++ b/make_slackware_live.sh @@ -2079,6 +2079,19 @@ if [ "$LIVEDE" = "DAW" ]; then # Stream ALSA through Pulse and all through Jack. This is achieved by # having pulseaudio-jack module installed and starting jack-dbus: + # We default to using a 48000 Hz sample rate throughout, assuming that + # modern sound hardware will support this, and it lowers the latency: + if [ -f ${LIVE_ROOTDIR}/etc/pulse/daemon.conf ]; then + cat <> ${LIVE_ROOTDIR}/etc/pulse/daemon.conf +; Run 'pulseaudio --dump-resample-methods' for all possible options. +; We want higher-quality resampling than the default: +resample-method = speex-float-9 +; Jack is configured for 48KHz so let's make pulseaudio use it too: +default-sample-rate = 48000 +alternate-sample-rate = 44100 +EOT + fi + mkdir -p ${LIVE_ROOTDIR}/home/${LIVEUID}/.config/rncbc.org cat < ${LIVE_ROOTDIR}/home/${LIVEUID}/.config/rncbc.org/QjackCtl.conf [Options] -- cgit v1.2.3