158 Voice API Programming Guide — June 2005
Global Tone Detection and Generation, and Cadenced Tone Generation
b. Use the dx_bldtngen( ) function to specify this tone definition in tone[0] (the first
TN_GEN tone array element) of the TN_GENCAD structure.
c. Identify the off-time for the first tone element and specify it in offtime[0]. If the first tone
element is followed immediately by a second tone element, set offtime[0] = 0.
d. Define the next segment of the cycle in tone[1] and offtime[1] the same way as above, and
so on, up to the maximum of 4 segments or until you reach the end of the cycle.
3. Use the TN_GENCAD to define the parameters of the cycle:
a. Specify the number of segments in the cycle (numsegs).
b. Specify the number of cycle repetitions (cycles).
4. Set the termination conditions in a DV_TPT structure.
5. Call the dx_playtoneEx( ) function and use the tngencadp parameter to specify the custom
cadenced tone that you defined in the TN_GENCAD.
For an illustration of this procedure, see Figure19.