Click or drag to resize

DampingFunction Delegate

Provides a function signature for methods that damp an amplitude representing a lowering of the acoustic pressure over time.

Namespace: GSF.Media.Music
Assembly: GSF.Media (in GSF.Media.dll) Version: 2.4.207-beta
Syntax
public delegate double DampingFunction(
	long sampleIndex,
	long samplePeriod,
	int sampleRate
)

Parameters

sampleIndex  Int64
Sample index (0 to samplePeriod - 1).
samplePeriod  Int64
Total period, in whole samples per second (i.e., seconds of time * sampleRate), over which to perform damping.
sampleRate  Int32
Number of samples per second, if useful for calculation.

Return Value

Double
Scaling factor in the range of zero to one used to damp an amplitude at the given sample index.
See Also