Previous PageTable Of Contents../index.htmlIndexNext Page



5.15. TN_GEN: Tone Generation Template

The TN_GEN data structure contains parameters for the Tone Generation Template.

The tone generation template defines the frequency, amplitude, and duration of a single or dual frequency tone to be played. You can use the convenience function dx_bldtngen( ) to set up the structure for the user-defined tone.

Use dx_playtone( ) to play the tone.

The typedef for the structure is as follows:

Parameter

Description

tg_dflag

Tone Generation Dual Tone Flag: Flag indicating single or dual tone definition. If single, the values in tg_freq2 and tg_ampl2 will be ignored.

 

TN_SINGLE

  single tone

 

TN_DUAL

  dual tone

tg_freq1

Specifies the frequency for tone 1 in Hz (range 200 to 2000 Hz).

tg_freq2

Specifies the frequency for tone 2 in Hz (range 200 to 2000 Hz).

tg_ampl1

Specifies the amplitude for tone 1 in dB (range -40 to 0 dB).

tg_ampl2

Specifies the amplitude for tone 2 in dB (range -40 to 0 dB).

tg_dur

Specifies the duration of the tone in 10 ms units (-1 = infinite duration).


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