Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Audio ¶
type Audio struct {
// contains filtered or unexported fields
}
The Audio type represents the audio controller. It should be used as a singleton, as multiple streams in PortAudio may not be supported on some hardware.
func InitAudio ¶
InitAudio starts up PortAudio, creates a stream and returns a pointer to an Audio struct, or an error.
type Track ¶
type Track struct {
// contains filtered or unexported fields
}
The Track type represents an audio track which can be played.
func (*Track) Pause ¶
func (t *Track) Pause()
Pause stops a Track playing, but does not reset its position. The track can be resumed by calling Play().
func (*Track) Restart ¶
func (t *Track) Restart()
Restart resets the Track to the beginning but does not stop playback.
func (*Track) SetLooping ¶
SetLooping sets whether or not a Track should loop.
Click to show internal directories.
Click to hide internal directories.