Merge pull request #2048 from fewtarius/dev
Fix audio latency global oops, add default latency value for the Loki
This commit is contained in:
commit
8508bdc29a
2 changed files with 13 additions and 2 deletions
|
@ -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
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue