hathoris/sources/interfaces.go

18 lines
251 B
Go

package sources
import ()
var SoundSources = map[string]SoundSource{}
type SoundSource interface {
GetName() string
IsActive() bool
IsEnabled() bool
Enable() error
Disable() error
}
type PlayingSource interface {
CurrentlyPlaying() string
}