Play ".wav" files using VB
Play WAV files using VB ~ awesome ~ Add sound to your projects! by: EM Dixson http://developer.ecorp.net HUNDREDS of FREE Visual Basic Source Code Samples, Snippets, Projects and MORE!
AI
สรุปโดย AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.
ซอร์สโค้ด
*************************************************************** * http://developer.ecorp.net * *************************************************************** Auhor: EM Dixson This code shows how to play a wave file from VB. Call the sub like this: PlaySound "C:\MyFolder\MySound.wav" Note that if the file is not found the windows default sound will be played instead. Paste the following code into a module: '//*********************************//' Public Declare Function sndPlaySound Lib "winmm" Alias "sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long Public Sub PlaySound(strFileName As String) sndPlaySound strFileName, 1 End Sub
ความคิดเห็นดั้งเดิม (3)
กู้คืนจาก Wayback Machine