stdout

package
v0.0.0-...-a19c61f Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stdout

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

Stdout is an engine backend that writes little-endian int16s to an output stream (stdout).

func New

func New(out io.Writer, frameSize, sampleRate int) *Stdout

New returns a new Stdout

func (*Stdout) FrameSize

func (s *Stdout) FrameSize() int

FrameSize returns the frame size of the backend.

func (*Stdout) SampleRate

func (s *Stdout) SampleRate() int

SampleRate returns the sample rate of the backend.

func (*Stdout) Start

func (s *Stdout) Start(callback func([]float32, [][]float32)) error

Start starts the backend.

func (*Stdout) Stop

func (s *Stdout) Stop() error

Stop stops the backend.

Jump to

Keyboard shortcuts

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