Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Audio ¶
type Audio struct { io.ReadCloser Format Format }
Audio is a stream of bytes containing encoded audio.
type Player ¶
type Player struct {
// contains filtered or unexported fields
}
Player plays audio streams.
func (*Player) Done ¶
func (p *Player) Done()
Done stops the current playback without waiting for the audio to finish.
func (*Player) GetSamples ¶
GetSamples returns a snapshot of the samples.
func (*Player) IsPlaying ¶
IsPlaying returns the state of the Player. Note that IsPlaying == false could mean either the audio has finished or is simply paused.
type Playlist ¶
type Playlist struct {
// contains filtered or unexported fields
}
Playlist manages the playback of audio files.
func (*Playlist) Done ¶
func (p *Playlist) Done()
Done signals that we are finished with the currently playing song.
func (*Playlist) GetSamples ¶
GetSamples returns the samples.
func (*Playlist) TogglePause ¶
func (p *Playlist) TogglePause()
TogglePause toggles the playback state.
Click to show internal directories.
Click to hide internal directories.