Click or drag to resize

DTMFComputeFrequencies Method

Computes a dual-tone multi-frequency sound for the given DTMF information and time.

Namespace: GSF.Media.Sound
Assembly: GSF.Media (in GSF.Media.dll) Version: 2.4.207-beta
Syntax
public static double ComputeFrequencies(
	DTMF tone,
	long sampleIndex,
	int sampleRate
)
View Source

Parameters

tone  DTMF
Instance of the DTMF specifying the duration as well as the low and high frequencies of the dual-tone.
sampleIndex  Int64
Sample index (represents time anywhere from zero to full length of tone).
sampleRate  Int32
Number of samples per second.

Return Value

Double
The amplitude for the dual-tone at the given time.
Remarks
This method computes an amplitude representing the acoustic pressure of a DTMF of the given frequency for the given time.
See Also