Checkpoint

This commit is contained in:
maze authored and maze committed 2026-10-29 17:29:54 +01:00
1 parent c5d6137fab
commit 4ae7655cd8
223 files changed
+14770 -18352

No files matched your search

+2 -2
View File
@@ -6,7 +6,7 @@ import (
"github.com/BeatGlow/beatglow/config"
)
type Opener = func(config.Audio) (Source, error)
type Opener = func(*config.Audio) (Source, error)
var drivers = make(map[string]Opener)
@@ -17,7 +17,7 @@ func Register(name string, opener Opener) {
drivers[name] = opener
}
func New(config config.Audio) (Source, error) {
func New(config *config.Audio) (Source, error) {
opener, ok := drivers[config.Type]
if ok {
return opener(config)