From e26bbb65d2adf894d17cdacf3b8880efcf8ea878 Mon Sep 17 00:00:00 2001 From: devgianlu Date: Tue, 10 Oct 2023 12:24:05 +0200 Subject: [PATCH] Set default value for audio device --- cmd/daemon/main.go | 3 +++ config_schema.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/daemon/main.go b/cmd/daemon/main.go index 75c0398..a16ddb4 100644 --- a/cmd/daemon/main.go +++ b/cmd/daemon/main.go @@ -260,6 +260,9 @@ func loadConfig(cfg *Config) error { if cfg.DeviceType == "" { cfg.DeviceType = "computer" } + if cfg.AudioDevice == "" { + cfg.AudioDevice = "default" + } if cfg.Bitrate == 0 { cfg.Bitrate = 160 } diff --git a/config_schema.json b/config_schema.json index cd98137..7be35e3 100644 --- a/config_schema.json +++ b/config_schema.json @@ -63,7 +63,7 @@ "audio_device": { "type": "string", "description": "Which audio device should be used for playback, leave empty for default", - "default": "" + "default": "default" }, "server_port": { "type": "integer",