audio

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SampleRate = 48000
	Channels   = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Capture

type Capture struct {
	// contains filtered or unexported fields
}

func StartCapture

func StartCapture(ctx context.Context) (*Capture, <-chan []int16, error)

func (*Capture) Close

func (c *Capture) Close() error

type Playback

type Playback struct {
	// contains filtered or unexported fields
}

func StartPlayback

func StartPlayback(ctx context.Context) (*Playback, error)

func (*Playback) Close

func (p *Playback) Close() error

func (*Playback) Write

func (p *Playback) Write(samples []int16)

Jump to

Keyboard shortcuts

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