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').
This commit is contained in:
Alex P 2025-10-23 23:24:44 +03:00
parent a61d2c5720
commit c55a4e2e8f
1 changed files with 1 additions and 0 deletions

View File

@ -107,6 +107,7 @@ type Config struct {
DefaultLogLevel string `json:"default_log_level"` DefaultLogLevel string `json:"default_log_level"`
VideoSleepAfterSec int `json:"video_sleep_after_sec"` VideoSleepAfterSec int `json:"video_sleep_after_sec"`
VideoQualityFactor float64 `json:"video_quality_factor"` VideoQualityFactor float64 `json:"video_quality_factor"`
AudioOutputSource string `json:"audio_output_source"` // "hdmi" or "usb"
} }
func (c *Config) GetDisplayRotation() uint16 { func (c *Config) GetDisplayRotation() uint16 {