audio

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2026 License: MIT Imports: 1 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL