Results 1 to 8 of 8

Thread: Playing Wavs, midi and mp3

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2001
    Location
    -
    Posts
    21

    Question

    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 ???
    ---

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Feb 2001
    Location
    -
    Posts
    21

    Yeah but want is the syntaxe ???

    Yeah but want id the syntaxe of the mci function for midi and is it diferent for wav ??????
    ---

  4. #4
    Guest
    try www.all-api.net.. and search for the functions

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Feb 2001
    Location
    -
    Posts
    21

    Question 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 ?
    ---

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Feb 2001
    Location
    -
    Posts
    21

    Wink 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 !
    ---

  7. #7

    Thread Starter
    Junior Member
    Join Date
    Feb 2001
    Location
    -
    Posts
    21

    Smile

    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.
    ---

  8. #8
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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
  •  



Click Here to Expand Forum to Full Width