The following code plays an audio file (.wav):
Does anybody know how to play a .mp3 file?Code:Private Declare Function sndPlaySound Lib "winmm.dll" _ Alias "sndPlaySoundA" (ByVal lpszSoundName As String, _ ByVal uFlags As Long) As Long '------------------------------------------------------- Private Sub PlaySound() Dim SoundFile As String, Result As Long SoundFile = "mysound.wav" Result = sndPlaySound(SoundFile, 1) End Sub
thx, vbzero




Reply With Quote