|
DampingFunction Delegate
|
Provides a function signature for methods that damp an amplitude representing a
lowering of the acoustic pressure over time.
Namespace: GSF.Media.MusicAssembly: GSF.Media (in GSF.Media.dll) Version: 2.4.218-beta
Syntax public delegate double DampingFunction(
long sampleIndex,
long samplePeriod,
int sampleRate
)
Public Delegate Function DampingFunction (
sampleIndex As Long,
samplePeriod As Long,
sampleRate As Integer
) As Double
type DampingFunction =
delegate of
sampleIndex : int64 *
samplePeriod : int64 *
sampleRate : int -> float
function(sampleIndex, samplePeriod, 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
DoubleScaling factor in the range of zero to one used to damp an amplitude at the given sample index.
See Also