N Nathan Dec 24, 2003 #1 Can someone please point me in the right direction toward getting VB.NET to play WAV files, or any type of sound files for that matter?
Can someone please point me in the right direction toward getting VB.NET to play WAV files, or any type of sound files for that matter?
K Ken Tucker [MVP] Dec 24, 2003 #2 Hi, You have to use the sndplaysound api. declares Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" _ (ByVal lpszSoundName As String, ByVal uFlags As Integer) As Integer Const SND_ASYNC = &H1 ' play asynchronously example sndPlaySound("C:\Windows\Media\tada.wav", SND_ASYNC) More info http://msdn.microsoft.com/library/d...ry/en-us/multimed/htm/_win32_sndplaysound.asp Ken
Hi, You have to use the sndplaysound api. declares Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" _ (ByVal lpszSoundName As String, ByVal uFlags As Integer) As Integer Const SND_ASYNC = &H1 ' play asynchronously example sndPlaySound("C:\Windows\Media\tada.wav", SND_ASYNC) More info http://msdn.microsoft.com/library/d...ry/en-us/multimed/htm/_win32_sndplaysound.asp Ken
H Herfried K. Wagner [MVP] Dec 24, 2003 #3 * "Nathan said: Can someone please point me in the right direction toward getting VB.NET to play WAV files, or any type of sound files for that matter? Click to expand... See: <http://groups.google.com/[email protected]>
* "Nathan said: Can someone please point me in the right direction toward getting VB.NET to play WAV files, or any type of sound files for that matter? Click to expand... See: <http://groups.google.com/[email protected]>