level

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 (
	PEAK_HOLD_TIME_SECONDS = 2
	TIME_CONSTANT          = 1.7 // DIN IEC 60268-18
	MIN_LEVEL              = -200.0
	OUTPUT_COUNT           = 1
)

* Global constants.

Variables

This section is empty.

Functions

This section is empty.

Types

type Meter

type Meter interface {
	Analyze(channelId uint32) (Result, error)
	ChannelCount() uint32
	ChannelName(channelId uint32) (string, error)
	Enabled() bool
	Process(inputBuffers [][]float64, sampleRate uint32) error
	SetEnabled(value bool)
}

* Interface type representing a level meter for muliple channels.

func CreateMeter

func CreateMeter(numChannels uint32, names []string) (Meter, error)

* Creates a new level meter for a certain number of channels.

type Result

type Result interface {
	Level() int32
	Peak() int32
}

* The result of a level analysis.

Jump to

Keyboard shortcuts

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