Checkpoint
This commit is contained in:
223 files changed
+14770
-18352
No files matched your search
+2
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user