recorder

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Recorder

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

Recorder is a recorder component.

func New

func New(source *media.AudioNode, size media.BufSize, channels int) *Recorder

New returns a recorder component.

func (*Recorder) OnRecording

func (r *Recorder) OnRecording(cb func([]float32))

OnRecording callback invokeing when recording.

func (*Recorder) Record

func (r *Recorder) Record()

Record starts to record.

func (Recorder) Recording

func (r Recorder) Recording() bool

Recording returns true when recording.

func (*Recorder) Release

func (r *Recorder) Release()

Release frees up resources. Recorder must be not used after calling Release.

func (*Recorder) Stop

func (r *Recorder) Stop()

Stop stops to record.

Jump to

Keyboard shortcuts

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