Select the product you need help with
How To Select Soundcard in Visual Basic with Multimedia ControlArticle ID: 180032 - View products that this article applies to. This article was previously published under Q180032 On This PageSUMMARY
This article describes how to set the WaveAudio device (soundcard) used by
the Multimedia Control (MCI32.ocx) using Visual Basic.
MORE INFORMATION
To set the WaveAudio device (soundcard) used by the Multimedia Control, you
must use the mciSendCommand API. The Multimedia Control does not directly
provide a method to let you set the device used for playing or recording.
The following Visual Basic sample code shows how to use mciSendCommand to specify the device used for WaveAudio output. Sample CodeFollowing are the required definitions and declarations. Place these in a module file:Sample CodeThe following code sets the output device. This code assumes that you have a Multimedia Control called "MMControl1." This code should be called after the wave file to be played has been opened by MMControl1.REFERENCES
See the mciSendCommand documentation in the Win32 SDK documentation.
Properties |


Back to the top








