hwio

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const (
	INPUT_CHANNELS  = 2
	OUTPUT_CHANNELS = INPUT_CHANNELS + 3
)

* Global constants.

Variables

This section is empty.

Functions

func Connect added in v1.1.0

func Connect(sourcePort string, destinationPort string)

* Connects a source port to a destination port.

func DSPLoad

func DSPLoad() float32

* Get DSP load.

func FramesPerPeriod

func FramesPerPeriod() uint32

* Get frames per period.

func SetFramesPerPeriod

func SetFramesPerPeriod(n uint32)

* Set frames per period.

func Unregister

func Unregister(binding *Binding)

* Unregister a binding to a hardware interface.

Types

type Binding

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

* Data structure representing a handle to a hardware input and output and an * associated signal processor.

func Register

func Register(processor Processor, listener SampleRateListener) (*Binding, error)

* Register a binding to a hardware interface.

type Processor

type Processor func([][]float64, [][]float64, uint32)

* Function pointer for implementing signal processors.

type SampleRateListener

type SampleRateListener func(uint32)

* Function pointer for implementing sample rate listeners.

Jump to

Keyboard shortcuts

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