Total Access Components Tour: Wave
The Wave control lets you play Windows digitized audio *.WAV files and
MIDI sequences through your PC’s sound card. You can play, pause, stop,
and rewind these audio files, and set repeat play.
Note: For this control to work, your machine must already have
the correct hardware devices and software drivers.
Using the Wave Control
Place a Total Access Components Wave control on your form. After
placing and naming the control, use the Property Window to specify the
name and path of the WAV or MIDI file, or write the appropriate VBA code
to set the FileName property. Note that you do not have to identify the
file’s type as WAV or MIDI; the control does this automatically. Use the
Play, Rewind, Pause, or Stop methods to control the file.
Stopping and Rewinding
The Stop method stops playing the file and rewinds to the beginning. If
the Play method is called and the file plays until completion, the control
also rewinds to the beginning.
Wave Properties
|
Name |
Description |
|
FileName |
The path and name of the WAV or MIDI file. |
|
Repeat |
Whether the file is replayed. |
|
RepeatCount |
How many times to repeat play (integer value). |
Wave Methods
|
Name |
Description |
|
Pause |
Pauses the sound file. |
|
Play |
Plays the sound file. |
|
Rewind |
Rewinds the sound file to the beginning. |
|
Stop |
Stops and rewinds the sound file. |
Wave Events
|
Name |
Description |
|
OnReplay |
Fires when play starts over. |
|