22 lines
370 B
Go
22 lines
370 B
Go
package sources
|
|
|
|
import ()
|
|
|
|
var (
|
|
LoadableSources = map[string]LoadaleSource{}
|
|
SoundSources = map[string]SoundSource{}
|
|
)
|
|
|
|
type SoundSource interface {
|
|
GetName() string
|
|
IsActive() bool
|
|
IsEnabled() bool
|
|
Enable() error
|
|
Disable() error
|
|
}
|
|
|
|
type PlayingSource interface {
|
|
CurrentlyPlaying() string
|
|
}
|
|
|
|
type LoadaleSource func(map[string]string) (SoundSource, error)
|