Is it possible to do 1 function that can play Wav AND Mid or y have to use to different Function ???
What is the syntax this/these Function ???
Printable View
Is it possible to do 1 function that can play Wav AND Mid or y have to use to different Function ???
What is the syntax this/these Function ???
Sorry, you need separate functions. Unless you write your own, of course. MIDI is very hard to do if you're not using MCI -- getting the timing is a real nightmare.
Functions like PlaySound, mciSendString are the ones you need.
Yeah but want id the syntaxe of the mci function for midi and is it diferent for wav ??????
try www.all-api.net.. and search for the functions
Public 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()
PlaySound "C:\Windows\Media\ctmelody.wav" _
, 0&, &H1
End Sub
Thats work for playing wav file but,
first can you explain me what the 0& and &H1 is doing
second how do I play midi file
third how do I play mp3 ?
Can someone juste explain me how to use the mciSendstring Function (I find out that I can play midi wav and mp3 with this function but I don't kno whow it works )!!! some exemple will be apreciate a lot !
Am I the only one here who is not sleeping or you guy dont know how to use de mci function ???
I need exemple plz.
Easy now... ;)
I read your first message at school and so wasn't able to reply (well, a USEFUL reply :p). Check this out for more info: http://www.vb-world.net/graphics/tip55.html