|
-
Feb 24th, 2001, 05:44 PM
#1
Thread Starter
Junior Member
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 ???
-
Feb 24th, 2001, 06:10 PM
#2
Monday Morning Lunatic
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.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Feb 24th, 2001, 06:47 PM
#3
Thread Starter
Junior Member
Yeah but want is the syntaxe ???
Yeah but want id the syntaxe of the mci function for midi and is it diferent for wav ??????
-
Feb 25th, 2001, 07:51 AM
#4
try www.all-api.net.. and search for the functions
-
Feb 25th, 2001, 08:57 PM
#5
Thread Starter
Junior Member
I found a way to play wav file but how do i play midi?
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 ?
-
Feb 25th, 2001, 10:24 PM
#6
Thread Starter
Junior Member
Sorry i'm a real newbie with VB
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 !
-
Feb 26th, 2001, 08:09 AM
#7
Thread Starter
Junior Member
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.
-
Feb 26th, 2001, 12:54 PM
#8
Monday Morning Lunatic
Easy now... 
I read your first message at school and so wasn't able to reply (well, a USEFUL reply ). Check this out for more info: http://www.vb-world.net/graphics/tip55.html
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|