Previous PageTable Of Contents../index.htmlIndexNext Page

dx_settonelen( )

Description | Example | Errors | Cautions | See Also

Name:

int dx_settonelen(tonelength)

Inputs:

int tonelength

  tone duration

Returns:

0

  success

Includes:

srllib.h

 

dxxxlib.h

Category:

I/O

Top Of PageDescription

The dx_settonelen( ) function changes the duration of the built-in beep tone (sometimes referred to as a pre-record beep), which some application programs make use of to indicate the start of a recording or playback.

When a record or playback function specifies RM_TONE or PM_TONE (respectively) in the mode parameter, a beep tone will be transmitted immediately before the record or play is initiated. The duration of the beep tone can be altered by this function.

A device handle is not used when calling dx_settonelen( ). The beep tone will be modified for all voice resources used in the current process. The beep tone will not be affected in other processes.

Parameter

Description

tonelength

specifies the duration of the tone in 200 ms units. Default: 1 (200 ms). Range: 1 - 65535.

Top Of PageExample

Top Of PageErrors

None.

Top Of PageCautions

When using this function in a multi-threaded application, use critical sections or a semaphore around the function call to ensure a thread-safe application. Failure to do so will result in "Bad Tone Template ID" errors.

Top Of PageSee Also

Record and Play functions


Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

Copyright 2002, Dialogic Corporation
All rights reserved
This page generated February, 2002