diff options
author | Eric Hameleers <alien@slackware.com> | 2020-06-25 19:23:16 +0200 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2020-06-25 19:23:16 +0200 |
commit | 394748f8ce6e99eb7ad392fa62631c42a2425d73 (patch) | |
tree | 9f497b629da83a65cba02c28ecb784558ceddd02 /make_slackware_live.sh | |
parent | a5fa6f1749a5f91f213c653263f9862c33441160 (diff) | |
download | liveslak-394748f8ce6e99eb7ad392fa62631c42a2425d73.tar.gz liveslak-394748f8ce6e99eb7ad392fa62631c42a2425d73.tar.xz |
DAW: make pulseaudio use 48 KHz sample rate, like JACK and ALSA
Diffstat (limited to '')
-rwxr-xr-x | make_slackware_live.sh | 13 |
1 files changed, 13 insertions, 0 deletions
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 <<EOT >> ${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 <<EOT > ${LIVE_ROOTDIR}/home/${LIVEUID}/.config/rncbc.org/QjackCtl.conf [Options] |