DTMFGeneratorGenerate Method |
Generates DTMF to a PCM stream.
Namespace: StreamCoders.SignalsAssembly: MediaSuite (in MediaSuite.dll) Version: 2.0.5.0 (2.0.5.0)
Syntaxpublic byte[] Generate(
sbyte tone,
uint duration,
uint volume
)
Public Function Generate (
tone As SByte,
duration As UInteger,
volume As UInteger
) As Byte()
public:
array<unsigned char>^ Generate(
signed char tone,
unsigned int duration,
unsigned int volume
)
member Generate :
tone : sbyte *
duration : uint32 *
volume : uint32 -> byte[]
Parameters
- tone
- Type: SystemSByte
Possible characters are: 0-9, A-D, '*' and '#'. - duration
- Type: SystemUInt32
The duration in milliseconds of the generated signal. - volume
- Type: SystemUInt32
Unsigned power level [0;63] Amp = 10^(volume/10)
Return Value
Type:
Byte
null if it fails, else.
See Also