audio

package
v0.0.0-...-c7366c5 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: Unlicense Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init() error

func Terminate

func Terminate() error

Types

type AudioOutput

type AudioOutput struct {
	Left, Right float64
}

type Context

type Context struct {
	*portaudio.Stream
	Input chan AudioOutput
}

func NewContext

func NewContext(input chan AudioOutput, sampleRate float64) (*Context, error)

func (*Context) Process

func (c *Context) Process(out [][]float32)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳