The DtmfDecoderWrite API procedure is used to pass audio sample blocks to a DTMF decoder. The audio sample block must be PCM or uLaw data and consist of 20Ms worth of data (160 samples) at 8000Hz. To see how to create a DTMF decoder that will be used for PCM or uLaw data blocks, see the UsePcm parameter of the CreateDtmfDecoder(VoipMediaEngine, Boolean, Int32, Int32, Int32, Boolean, VoipMediaEngine..::.DTMF_DECODER_CALLBACK_PROC, Object) API procedure.

Namespace:  LanScape
Assembly:  LMEVoipManaged (in LMEVoipManaged.dll) Version: 6.0.5226.26700


public bool DtmfDecoderWrite(
	Object[] SampleBuffer
Visual Basic (Declaration)
Public Function DtmfDecoderWrite ( _
	SampleBuffer As Object() _
) As Boolean
Visual C++
bool DtmfDecoderWrite(
	array<Object^>^ SampleBuffer
public boolean DtmfDecoderWrite(
	Object[] SampleBuffer


Type: array< System..::.Object >[]()[]
The source audio data block. This sample data block will be analyzed for DTMF tone content when the buffer is processed.

Return Value

If the function succeeds, the return value will be non zero (TRUE).

If the function fails, the return value will be zero (FALSE). This condition may occur when using the DTMF decoder in "thread deferred mode". It may occur if the host system is very heavily loaded and the internal DTMF detection thread runs out of free DTMF sample block input buffers. Under normal conditions, this value will not be returned.



See Also