Add audio device switching UI
This commit is contained in:
@@ -413,7 +413,9 @@ func (app *Application) initializeAudio() {
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
if err := mixer.Init(config, app.refreshCache); err != nil {
|
||||
if err := mixer.Init(config, app.refreshCache, func(c *db.AppConfig) error {
|
||||
return app.DB.Save(c).Error
|
||||
}); err != nil {
|
||||
logger.Error("Unable to initialize audio device '%s': %v", config.SelectedAudioDevice, err)
|
||||
logger.Error("Audio will be unavailable until a device is configured")
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user