The etPlay control is used to play wave files over any available Windows Wave audio device. This includes your sound card and the audio channels for your telephony hardware.
Using TeleScope
1. Display the etPlay TeleScope. For an example see Display the etLine TeleScope.
2. Select an audio device. For an example see Select a telephony line device. Also see Play a wave file through the telephony line device and Play a wave file through the telephony phone device.
3. Click the Source tab
4. Enter a file name with full path in the etPlay.Source.FileName edit box.
5.
Select the menu option "Device | Active"
-or-
Click the first VCR style button adjacent to the Device list box.
Using TeleTools
1. Select an audio device. For an example see Select a telephony line device. Also see Play a wave file through the telephony line device and Play a wave file through the telephony phone device.
2.
Set the etPlay.Source.FileName property to the file name with full path.
Example:
etPlay1.Source.FileName := 'C:\Program Files\ExceleTel\TeleTools\3.7\Wav\et';
3.
Set the etPlay.Device.Active property to True.
Example:
etPlay1.Device.Active := True;
Note: The etPlay.OnDone event will fire when the file has finished playing and the wave audio device has release the buffer.
It is important to remember that there are many wave formats and different audio devices support different wave formats. The wave files supplied with TeleTools and TeleScope are "PCM 8,000 Hz, 16bit, Mono". This is a commonly used wave format for audio devices that are associated with telephony devices. If you attempt to record a wave file in an unsupported format then the error WAVERR_BADFORMAT will be returned (see Common Properties - Error).