Previous PageTable Of ContentsHomeIndexNext Page


10.3. Multithreaded GUI Based Voice Features Application Program

The Multithreaded GUI Based Application Program is a multichannel Dialogic voice GUI based demonstration program for Windows. The files are located in the base directory <install drive>:\<install directory>\dialogic\samples\voice.

The purpose of the Multithreaded GUI Based Application Program is to show how to use the API functions in an asynchronous voice application within the Windows programming environment. As is the case with most small Windows programs, the majority of the code is for graphical user interface support.

The Multithreaded GUI Based Application Program demonstrates the following functions:

The Multithreaded GUI Based Application Program is a MDI application running with two threads. The main thread creates a child window for each voice device that is opened. The main thread will also initiate the selected voice function on the active voice device (foreground child window). This thread will print a brief message in the child window and will gray out menu items that should not be selected while a channel is busy.

The purpose of the second thread is to poll for device events using sr_waitevt( ). Upon receiving an event, a brief message is displayed in the child window and menu items are enabled for the next function selection.

The 'Options' Menu allows the user to select PerfectCall options, adjust playback volume, define tone for playback, and select WAVE recording options. These settings are on a per channel basis and are stored in the structure CHINFO. When a device is opened, its CHINFO structure is initialized with default settings.

NOTES:
1. Linear PCM is not supported on the D/41D
2. Volume for playback can be adjusted at any time

Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

Copyright 2001, Dialogic Corporation
All rights reserved
This page generated January, 2001