audio

package
v0.0.0-...-a6db8ae Latest Latest
Warning

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

Go to latest
Published: May 10, 2020 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultLimit = 44100 * 10 // 10 seconds, or about half a MB
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Audio

type Audio struct {
	Limit int64 // Do not write after calling Run().
	// contains filtered or unexported fields
}

func New

func New(dev string) *Audio

func (*Audio) AddReader

func (a *Audio) AddReader(samples int) *Reader

func (*Audio) Run

func (a *Audio) Run(ctx context.Context)

type Reader

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

func (*Reader) Close

func (r *Reader) Close()

func (*Reader) Get

func (r *Reader) Get() ([]byte, error)

Jump to

Keyboard shortcuts

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