"The code is exactly
how I would like to write code and the algorithms used are very
efficient and well-documented."
Van T. Dinh, Microsoft MVP
|
|
Class: CWAVMID
Class that plays wav and midi files using the MCI (media control interface) API. This class allows you to interact with WAV or MIDI files without using the Microsoft Multimedia Control. In addition, this class allows you to record WAV files.
|
Procedure Name
|
Type
|
Description
|
|
(Declarations)
|
Declarations
|
Declarations and private variables for the CWAVMID class
|
|
FileName
|
Property
|
Sets the name of the file
|
|
Length
|
Property
|
Gets the play length of the sound file
|
|
Position
|
Property
|
Gets the current play position of the sound file
|
|
Class_Terminate
|
Terminate
|
Make sure the MCI resource is closed
|
|
CloseWAV
|
Method
|
Closes the WAV file
|
|
OpenWAV
|
Method
|
Opens the WAV file. The filename property should be set before calling this procedure.
|
|
Pause
|
Method
|
Pauses the WAV file
|
|
Play
|
Method
|
Plays the WAV file. The OpenWav procedure should be called before this procedure.
|
|
Record
|
Method
|
Records a WAV file.
The filename property must be set before calling this method. This method saves the recording to the file specified in FileName.
|
|
Rewind
|
Method
|
Rewinds the WAV file
|
|
StopPlay
|
Method
|
Stops the WAV file
|
Overview of Total Visual SourceBook
The source code in Total Visual
SourceBook includes modules and classes for Microsoft Access, Visual
Basic 6 (VB6), and Visual Basic for Applications (VBA) developers. Easily
add this professionally written, tested, and documented royalty-free code
into your applications to simplify your application development efforts.
Additional Resources
|
|