Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AudioByteStream ¶
type AudioByteStream struct {
SampleRate uint32
NumChannels uint32
SamplesPerChannel uint32
// contains filtered or unexported fields
}
AudioByteStream groups small audio frames into larger ones for processing
func NewAudioByteStream ¶
func NewAudioByteStream(sampleRate, numChannels, samplesPerChannel uint32) *AudioByteStream
func (*AudioByteStream) Flush ¶
func (s *AudioByteStream) Flush() []*model.AudioFrame
func (*AudioByteStream) Push ¶
func (s *AudioByteStream) Push(data []byte) []*model.AudioFrame
Click to show internal directories.
Click to hide internal directories.