Results 1 to 6 of 6

Thread: MP3 routine prob

  1. #1
    Stiletto
    Guest

    MP3 routine prob

    Hey, I get an error when i'm adding a mp3 file into a listbox.
    I'm adding the file with:
    Code:
    PlayList......+ MP3.Length
    and i get an error: Type Mismatch
    The bold line in the code is the yellow line which VB marks in error
    Code:
    Public Function LengthInSec() As Long
      Dim Ls As String * 30
      
      Call mciSendString("set MP3Play time format milliseconds", 0, 0, 0)
      Call mciSendString("status MP3Play length", Ls, Len(Ls), 0)
      (B)LengthInSec = CLng(Left$(Ls, Len(Ls))) \ 1000(/B)
    End Function
    CAn ne1 plz fix theat line for me?

  2. #2
    Stiletto
    Guest
    K
    BTW, this is leading me to another question:
    What's the diffrend between Integer and Long?

  3. #3
    Stiletto
    Guest
    I still get an error: Type Mismatch. The marked line is:
    LengthInSec = CLng(Left$(Ls, Len(Ls))) \ 1000
    ?

  4. #4
    Stiletto
    Guest

    THAT'S XPLANE EVERYTHING

    Do u know a way to get the file's length without playin the file?

  5. #5
    Stiletto
    Guest
    ne1 else?

  6. #6
    Stiletto
    Guest
    Can you plz help me guys?

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