Introduce settings.json to store custom sources

This commit is contained in:
nemunaire 2024-10-01 19:10:45 +02:00
commit ded6ef6095
6 changed files with 143 additions and 23 deletions

View file

@ -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)