SndPlaySound API Function
The easiset API for playing conventional sounds is:
code:
option explicit
Private Declare Function sndPlaySound _
Lib "winmm.dll" Alias "sndPlaySoundA" ( _
ByVal lpszSoundName As String, _
ByVal uFlags As Long _
) As Long
Private Sub Command1_Click()
sndPlaySound("C:\windows\media\start.wav", &H1)
End Sub
Hope it Works
Is it Possible to play MP3's using DirectX or Direct Sound?
All the above API's will play .wav or .midi. Those API's will not play MP3. Is it Possible to play MP3 files using DirectX or DirectSound. How will be the Quality of the Sound. I'm having DirectX 7a. If it is possible to play, please send me the coding.
Re: SndPlaySound API Function
Quote:
Originally posted by Wak
The easiset API for playing conventional sounds is:
code:
option explicit
Private Declare Function sndPlaySound _
Lib "winmm.dll" Alias "sndPlaySoundA" ( _
ByVal lpszSoundName As String, _
ByVal uFlags As Long _
) As Long
Private Sub Command1_Click()
sndPlaySound("C:\windows\media\start.wav", &H1)
End Sub
Hope it Works
sndPlaySound has been superseded by PlaySound