Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Source ¶
type Source interface {
// contains filtered or unexported methods
}
Source is a Stream source.
func SourceExec ¶
SourceExec uses the output of the given command and arguments as source data.
type Stream ¶
type Stream struct { // Command to execute to play the file. Defaults to "ffmpeg". Command string // Playback volume (can be changed while the source is playing). Volume float32 // Audio source (cannot be changed after stream starts). Source Source // Starting offset. Offset time.Duration // contains filtered or unexported fields }
Stream is an audio stream that encodes media through ffmpeg and sends it to the server.
A stream can only be used once; it cannot be started after it is stopped.
Click to show internal directories.
Click to hide internal directories.