From a20c13d7f3257cab78573672ead2c98ac2600761 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 {