bind

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: May 14, 2020 License: MIT Imports: 8 Imported by: 12

Documentation

Overview

Package bind is for modular binding of mix to audio interface

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure added in v0.0.4

func Configure(s spec.AudioSpec)

Configure begins streaming to the bound out audio interface, via a callback function

func IsDirectOutput added in v0.0.4

func IsDirectOutput() bool

func LoadWAV

func LoadWAV(file string) ([]sample.Sample, *spec.AudioSpec)

LoadWAV into a buffer

func OutputNext added in v0.0.4

func OutputNext(numSamples spec.Tz)

OutputNext using the configured writer.

func OutputStart added in v0.0.4

func OutputStart(length time.Duration, out io.Writer)

OutputStart requires a known length

func SetOutputCallback added in v0.0.4

func SetOutputCallback(fn sample.OutNextCallbackFunc)

SetMixNextOutFunc to stream mix out from mix

func Teardown

func Teardown()

Teardown to close all hardware bindings

func UseLoader added in v0.0.3

func UseLoader(opt opt.Input)

UseLoader to select the file loading interface

func UseLoaderString added in v0.0.3

func UseLoaderString(loader string)

UseLoaderString to select the file loading interface by string

func UseOutput added in v0.0.3

func UseOutput(opt opt.Output)

UseOutput to select the outback interface

func UseOutputString added in v0.0.3

func UseOutputString(output string)

UseOutputString to select the outback interface by string

Types

This section is empty.

Directories

Path Synopsis
Package debug for debugging
Package debug for debugging
hardware
null
Package null is for modular binding of mix to a null (mock) audio interface
Package null is for modular binding of mix to a null (mock) audio interface
Package opt specifies valid options
Package opt specifies valid options
Package sample models an audio sample Package sample models an audio sample
Package sample models an audio sample Package sample models an audio sample
Package sox is for file I/O via go-sox package
Package sox is for file I/O via go-sox package
Package spec specifies valid audio formats
Package spec specifies valid audio formats
Package wav is direct WAV filo I/O Package wav is direct WAV filo I/O Package wav is direct WAV filo I/O Package wav is direct WAV filo I/O
Package wav is direct WAV filo I/O Package wav is direct WAV filo I/O Package wav is direct WAV filo I/O Package wav is direct WAV filo I/O

Jump to

Keyboard shortcuts

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