audio

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2020 License: MIT Imports: 3 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

type Reader interface {
	Read() (wave.Audio, error)
}

type ReaderFunc

type ReaderFunc func() (wave.Audio, error)

func (ReaderFunc) Read

func (rf ReaderFunc) Read() (wave.Audio, error)

type TransformFunc

type TransformFunc func(r Reader) Reader

TransformFunc produces a new Reader that will produces a transformed audio

func Merge

func Merge(transforms ...TransformFunc) TransformFunc

Merge merges transforms and produces a new TransformFunc that will execute transforms in order

func NewBuffer

func NewBuffer(nSamples int) TransformFunc

NewBuffer creates audio transform to buffer signal to have exact nSample samples.

func NewChannelMixer

func NewChannelMixer(channels int, mixer mixer.ChannelMixer) TransformFunc

NewChannelMixer creates audio transform to mix audio channels.

Jump to

Keyboard shortcuts

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