Add audio device switching UI

This commit is contained in:
NeilClack
2026-08-08 00:12:57 -05:00
parent b54dbca2d5
commit 2212cc9b78
11 changed files with 1528 additions and 455 deletions
+3 -1
View File
@@ -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 {