Introduce settings.json to store custom sources
This commit is contained in:
parent
85ecd89104
commit
ded6ef6095
6 changed files with 143 additions and 23 deletions
|
|
@ -2,7 +2,10 @@ package sources
|
|||
|
||||
import ()
|
||||
|
||||
var SoundSources = map[string]SoundSource{}
|
||||
var (
|
||||
LoadableSources = map[string]LoadaleSource{}
|
||||
SoundSources = map[string]SoundSource{}
|
||||
)
|
||||
|
||||
type SoundSource interface {
|
||||
GetName() string
|
||||
|
|
@ -15,3 +18,5 @@ type SoundSource interface {
|
|||
type PlayingSource interface {
|
||||
CurrentlyPlaying() string
|
||||
}
|
||||
|
||||
type LoadaleSource func(map[string]string) (SoundSource, error)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue