Help us shape the future of Go! Take the 2026 Go Developer Survey

mixer

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2019 License: MIT Imports: 4 Imported by: 0

README

Mixer

GoDoc Go Report Card Build Status codecov

Mix multiple signals into one.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mixer

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

Mixer summs up multiple channels of messages into a single channel.

func New

func New() *Mixer

New returns new mixer.

func (*Mixer) Flush

func (m *Mixer) Flush(sourceID string) error

Flush mixer data for defined source.

func (*Mixer) Interrupt

func (m *Mixer) Interrupt(sourceID string) error

Interrupt impliments pipe.Interrupter.

func (*Mixer) Pump

func (m *Mixer) Pump(outputID string) (func(bufferSize int) ([][]float64, error), int, int, error)

Pump returns a pump function which allows to read the out channel.

func (*Mixer) Reset

func (m *Mixer) Reset(sourceID string) error

Reset resets the mixer for another run.

func (*Mixer) Sink

func (m *Mixer) Sink(inputID string, sampleRate, numChannel int) (func([][]float64) error, error)

Sink registers new input. SampleRate and NumChannels are propagated here, due to that Sink pipes should be called before Pump.

Jump to

Keyboard shortcuts

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