From c55a4e2e8f0d978a7c1bd1fe20124becc7acf048 Mon Sep 17 00:00:00 2001 From: Alex P Date: Thu, 23 Oct 2025 23:24:44 +0300 Subject: [PATCH] fix: add AudioOutputSource field to Config struct The audio.go file references config.AudioOutputSource but the field was missing from the Config struct definition, causing type errors. Added AudioOutputSource string field with json tag 'audio_output_source' to support configuration of audio output source ('hdmi' or 'usb'). --- config.go | 1 + 1 file changed, 1 insertion(+) diff --git a/config.go b/config.go index fe5bbf89..3ed661e8 100644 --- a/config.go +++ b/config.go @@ -107,6 +107,7 @@ type Config struct { DefaultLogLevel string `json:"default_log_level"` VideoSleepAfterSec int `json:"video_sleep_after_sec"` VideoQualityFactor float64 `json:"video_quality_factor"` + AudioOutputSource string `json:"audio_output_source"` // "hdmi" or "usb" } func (c *Config) GetDisplayRotation() uint16 {