Skip to content

Commit

Permalink
Set default value for audio device
Browse files Browse the repository at this point in the history
  • Loading branch information
devgianlu committed Oct 10, 2023
1 parent a1a15dc commit e26bbb6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions cmd/daemon/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion config_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit e26bbb6

Please sign in to comment.