bind

package
Version: v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2016 License: MIT Imports: 8 Imported by: 0

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)

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.

Source Files

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
portaudio
Package portaudio is for modular binding of mix to audio interface via PortAudio
Package portaudio is for modular binding of mix to audio interface via PortAudio
sdl
Package sdl is for modular binding of mix to audio interface via SDL2
Package sdl is for modular binding of mix to audio interface via SDL2
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 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