Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FrameSizes = []float32{60, 40, 20, 10, 5, 2.5}
FrameSizes is a list of valid frame sizes for Opus encoding
Functions ¶
This section is empty.
Types ¶
type OggStream ¶
type OggStream struct { SampleRate uint Channels uint Bitrate uint FrameSize float32 Complexity uint // contains filtered or unexported fields }
OggStream is an encoder that takes audio samples and encodes them using the Opus audio codec into an Ogg container, using the given settings.
func (*OggStream) Encode ¶
Encode takes an array of int16 PCM samples and encodes them into the Ogg container, returning any bytes generated by doing so (could be zero if a page flush is not triggered by the encode).
func (*OggStream) EncodeBytes ¶
EncodeBytes takes a byte array of little-endian int16 PCM samples and encodes them into the Ogg container, returning any bytes generated by doing so (could be zero if a page flush is not triggered by the encode).
Click to show internal directories.
Click to hide internal directories.