| 
            
              DTMFGenerate(WaveFile, DTMF, Double, Int32) Method
             | 
          
        
        
            Generates the specified dual-tone multi-frequencies 
repeatCount times storing them in the specified 
WaveFile.
            
 
        
        Namespace: GSF.Media.SoundAssembly: GSF.Media (in GSF.Media.dll) Version: 2.4.257-beta
Syntaxpublic static void Generate(
	WaveFile destination,
	DTMF[] tones,
	double volume,
	int repeatCount
)
Public Shared Sub Generate ( 
	destination As WaveFile,
	tones As DTMF(),
	volume As Double,
	repeatCount As Integer
)
public:
static void Generate(
	WaveFile^ destination, 
	array<DTMF^>^ tones, 
	double volume, 
	int repeatCount
)
static member Generate : 
        destination : WaveFile * 
        tones : DTMF[] * 
        volume : float * 
        repeatCount : int -> unit GSF.Media.Sound.DTMF.Generate = function(destination, tones, volume, repeatCount);
 View SourceParameters
- 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| Exception | Condition | 
|---|
| ArgumentOutOfRangeException | Value must be expressed as a fractional percentage between zero and one. | 
| InvalidOperationException | DTMF only generated for WaveFile with a sample rate of 8, 16, 24, 32 or 64 bits per sample. | 
See Also