Click or drag to resize

DTMFGenerate(WaveFile, DTMF, Double, Int32) Method

Generates the specified dual-tone multi-frequencies repeatCount times storing them in the specified WaveFile.

Namespace: GSF.Media.Sound
Assembly: GSF.Media (in GSF.Media.dll) Version: 2.4.218-beta
Syntax
public static void Generate(
	WaveFile destination,
	DTMF[] tones,
	double volume,
	int repeatCount
)
View Source

Parameters

destination  WaveFile
WaveFile used to store generated dual-tone multi-frequencies.
tones  DTMF
Dual-tone multi-frequencies to generate.
volume  Double
Volume of generated dual-tones as a percentage (0 to 1).
repeatCount  Int32
Number of times to repeat each tone.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionValue must be expressed as a fractional percentage between zero and one.
InvalidOperationExceptionDTMF only generated for WaveFile with a sample rate of 8, 16, 24, 32 or 64 bits per sample.
See Also