spatializer

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: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_SAMPLE_RATE     = 96000
	EFFECTIVE_DISTANCE      = 0.215
	HALF_EFFECTIVE_DISTANCE = 0.5 * EFFECTIVE_DISTANCE
	GROUP_DELAY             = 6.3e-4
	OUTPUT_COUNT            = 2
)

* Other global constants.

View Source
const (
	MATH_DEGREE_TO_RADIANS = math.Pi / 180.0
)

* Mathematical constants.

Variables

This section is empty.

Functions

This section is empty.

Types

type Spatializer

type Spatializer interface {
	GetAzimuth(inputChannel uint32) (float64, error)
	GetDistance(inputChannel uint32) (float64, error)
	GetLevel(inputChannel uint32) (float64, error)
	GetInputCount() uint32
	GetOutputCount() uint32
	Process(inputBuffers [][]float64, auxInputBuffer []float64, outputBuffers [][]float64)
	SetAzimuth(inputChannel uint32, azimuth float64) error
	SetDistance(inputChannel uint32, distance float64) error
	SetLevel(inputChannel uint32, level float64) error
	SetSampleRate(rate uint32)
}

* Interface type for a spatializer.

func Create

func Create(inputChannels uint32) Spatializer

* Creates a new spatializer.

Jump to

Keyboard shortcuts

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