Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultCommand = "ffmpeg"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Source ¶
type Source interface {
// contains filtered or unexported methods
}
func SourceExec ¶
type Stream ¶
type Stream struct {
// Command to execute to play the file. Defaults to "ffmpeg".
Command string
// Playback volume. This value can be changed while the source is playing.
Volume float32
// Audio source. This value should not be changed until the stream is done
// playing.
Source Source
// Starting offset.
Offset time.Duration
// The amount of audio that has been played by the stream (resets when a
// source starts from the beginning).
Elapsed time.Duration
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.