engine

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package engine provides output through PortAudio

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine struct {
	sync.Mutex
	module.IO
	// contains filtered or unexported fields
}

Engine is the connection of the synthesizer to PortAudio

func New

func New(deviceIndex int) (*Engine, error)

New returns a new Enngine

func (*Engine) CurrentLatency added in v0.0.11

func (e *Engine) CurrentLatency() time.Duration

func (*Engine) Errors

func (e *Engine) Errors() chan error

Errors returns a channel that expresses any errors during operation of the Engine

func (*Engine) Run

func (e *Engine) Run()

Run starts the Engine; running the audio stream

func (*Engine) Stop

func (e *Engine) Stop() error

Stop shuts down the Engine

Jump to

Keyboard shortcuts

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