Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Exec is the default path to the ffmpeg executable Exec = "ffmpeg" Channels = 2 SampleRate = 48000 BufferSize = 65307 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AudioProvider ¶
type AudioProvider struct { Paused bool // contains filtered or unexported fields }
func (*AudioProvider) Close ¶
func (p *AudioProvider) Close()
func (*AudioProvider) ProvideOpusFrame ¶
func (p *AudioProvider) ProvideOpusFrame() ([]byte, error)
func (*AudioProvider) Wait ¶
func (p *AudioProvider) Wait() error
type Config ¶
Config is used to configure a ffmpeg audio source.
func DefaultConfig ¶
func DefaultConfig() *Config
DefaultConfig returns a new Config with default values.
type ConfigOpt ¶
type ConfigOpt func(config *Config)
ConfigOpt is used to functionally configure a Config.
func WithBufferSize ¶
WithBufferSize sets the Config(s) used BufferSize.
func WithChannels ¶
WithChannels sets the Config(s) used Channels.
func WithSampleRate ¶
WithSampleRate sets the Config(s) used SampleRate.
Click to show internal directories.
Click to hide internal directories.