I think i would be cool with my favourite song as backgroundmusic in a prog.
Anyone know how do do it?
Printable View
I think i would be cool with my favourite song as backgroundmusic in a prog.
Anyone know how do do it?
MP3Code:'Play A sound
'
'API Function to play the sound
'bas module code
Private Declare Function PlaySound Lib "winmm.dll" _
Alias "PlaySoundA" (ByVal lpszName As String, _
ByVal hModule As Long, ByVal dwFlags As Long) As Long
Private Sub Command1_Click()
'
End Sub
Private Sub Command2_Click()
'Stop wav
PlaySound "C:\A Wayne\YourFile.wav", 0&, &H4
End Sub
Private Sub Form_Load()
'Play wav
PlaySound "C:\ab\baby.wav", 0&, &H1
End Sub
http://209.207.250.147/showthread.php?threadid=31987
if you have downloaded Real Player then you should have their control in components which you can use to play MP3's