FILE: Playwave.exe Demonstrates How To Play a Sound File

ID: Q182983


The information in this article applies to:


SUMMARY

PLAYWAVE.EXE is a self-extracting compressed file that demonstrates how to play uncompressed sound files in your Visual Basic program. The sample also displays the wave data graphically. The project also demonstrates how to use some of the multimedia API functions.


MORE INFORMATION

The following file is available for download from the Microsoft Software Library:

~ Playwave.exe

For more information about downloading files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base:

Q119591 : How to Obtain Microsoft Support Files from Online Services


When you run the self-extracting executable file, the following files are expanded into the Wave Audio Sample directory:

To Run the Sample Project


  1. Open the project in Visual Basic.


  2. On the Run menu, click Start or press the F5 key to start the program.


  3. From the Main Form, click File to open a common dialog control. Select an uncompressed sound file. The sound file data appears in the WaveForm Picture Form.


  4. To play the file, click Play on the Main form. To play the file from a different starting or ending point, use the scroll bars to set the start or end points and then click play.

    NOTE: The sound file is loaded into memory rather than being read from disk. Large sound files can use a significant amount of memory.



REFERENCES

For more information about using the multimedia API functions, please see the following topics in the Platform SDK documentation:

The following functions are used in this sample project. For specific information about these functions, see the Platform SDK documentation:

Additional query words: kbsample kbVBp500 kbVBp600 kbVBp kbdsd kbDSupport


Keywords          : 
Version           : 
Platform          : WINDOWS 
Issue type        : 

Last Reviewed: May 12, 1999