Documentation ¶
Index ¶
- Constants
- func ClearHandler(playstate *Playstate, arguments []string)
- func GetExtensionFor(identifier string) string
- func HandleRequest(playstate *Playstate, kind string, arguments []string)
- func LoadHandler(playstate *Playstate, arguments []string)
- func Terminate()
- type AudioSource
- type AudioSourceFactory
- type Configuration
- type LibSndFileAudioSource
- type MP3AudioSource
- type MessageHandler
- type Playlist
- type Playstate
- type Repeat
- type Track
Constants ¶
View Source
const (
DEFAULT_PORT int = 28346
)
View Source
const (
FRAMES_PER_BUFFER = 8196
)
Variables ¶
This section is empty.
Functions ¶
func ClearHandler ¶
func GetExtensionFor ¶
func HandleRequest ¶
func LoadHandler ¶
Types ¶
type AudioSource ¶
type AudioSource interface { ReadFrames(out []int32) (int64, error) Channels() int32 SampleRate() int32 Open(string) error Close() }
func NewAudioSource ¶
func NewAudioSource(identifier string) AudioSource
func NewLibSndFileAudioSource ¶
func NewLibSndFileAudioSource() AudioSource
func NewMP3AudioSource ¶
func NewMP3AudioSource() AudioSource
type AudioSourceFactory ¶
type AudioSourceFactory func() AudioSource
type Configuration ¶
type Configuration struct {
Address string `yaml:"address";json:"address"`
}
func GetConfiguration ¶
func GetConfiguration() Configuration
type LibSndFileAudioSource ¶
type LibSndFileAudioSource struct {
// contains filtered or unexported fields
}
func (*LibSndFileAudioSource) Channels ¶
func (this *LibSndFileAudioSource) Channels() int32
func (*LibSndFileAudioSource) Close ¶
func (this *LibSndFileAudioSource) Close()
func (*LibSndFileAudioSource) Open ¶
func (this *LibSndFileAudioSource) Open(identifier string) error
func (*LibSndFileAudioSource) ReadFrames ¶
func (this *LibSndFileAudioSource) ReadFrames(out []int32) (int64, error)
func (*LibSndFileAudioSource) SampleRate ¶
func (this *LibSndFileAudioSource) SampleRate() int32
type MP3AudioSource ¶
type MP3AudioSource struct {
// contains filtered or unexported fields
}
func (*MP3AudioSource) Channels ¶
func (this *MP3AudioSource) Channels() int32
func (*MP3AudioSource) Close ¶
func (this *MP3AudioSource) Close()
func (*MP3AudioSource) Open ¶
func (this *MP3AudioSource) Open(identifier string) error
func (*MP3AudioSource) ReadFrames ¶
func (this *MP3AudioSource) ReadFrames(out []int32) (int64, error)
func (*MP3AudioSource) SampleRate ¶
func (this *MP3AudioSource) SampleRate() int32
type MessageHandler ¶
type Playlist ¶
type Playlist struct {
// contains filtered or unexported fields
}
func NewPlaylist ¶
type Playstate ¶
type Playstate struct { Playlist *Playlist // contains filtered or unexported fields }
func NewPlaystate ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.