Documentation
¶
Index ¶
- Constants
- func GetDshowDevices() ([]string, error)
- func NewFFMPEGStream(input io.Reader, debug ...bool) (audio.Stream, error)
- func NewFFMPEGStreamAdvanced(cmd *exec.Cmd, debug ...bool) (audio.Stream, error)
- func NewFFMPEGStreamFromDshow(device string, debug ...bool) (audio.Stream, error)
- func NewFFMPEGStreamFromFile(name string, debug ...bool) (audio.Stream, error)
Constants ¶
View Source
const SampleRate = 48000
SampleRate is the sample rate used by FFMPEG.
Variables ¶
This section is empty.
Functions ¶
func GetDshowDevices ¶
func NewFFMPEGStream ¶
NewFFMPEGStream returns an audio stream from any input that FFMPEG accepts.
func NewFFMPEGStreamAdvanced ¶
NewFFMPEGStreamAdvanced returns an audio stream from a constructed FFMPEG command. The output must be single channel "pcm_s32le" at a sample rate of SampleRate to stdout (pipe:1).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.