ears

package
v0.0.0-...-41dbb3c Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const BufferSize = 1024

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

type Channel [BufferSize]float64

type Ears

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

func New

func New(onGotDevice func(sampleRate SampleRate)) *Ears

func (*Ears) Listen

func (e *Ears) Listen(onData func(*Heard)) error

func (*Ears) Unlisten

func (e *Ears) Unlisten()

type Heard

type Heard struct {
	SampleRate SampleRate
	Mono       Channel
}

type SampleRate

type SampleRate uint32

Jump to

Keyboard shortcuts

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