Merge pull request #2048 from fewtarius/dev

Fix audio latency global oops, add default latency value for the Loki
This commit is contained in:
fewtarius 2023-09-12 20:27:52 -04:00 committed by GitHub
commit 8508bdc29a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 2 deletions

View file

@ -0,0 +1,9 @@
#!/bin/sh
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2021-present Fewtarius (https://github.com/fewtarius)
AUDIO_LATENCY=$(get_setting audiolatency)
if [ -z "${AUDIO_LATENCY}" ]
then
set_setting global.audiolatency 64
fi

View file

@ -1,7 +1,9 @@
#!/bin/sh
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2023-present Fewtarius (https://github.com/fewtarius)
AUDIO_LATENCY=$(get_setting audiolatency)
if [ -z "${AUDIO_LATENCY}" ]
if [ -n "${AUDIO_LATENCY}" ]
then
export PULSE_LATENCY_MSEC=${AUDIO_LATENCY}
fi