Results 1 to 5 of 5

Thread: [RESOLVED] How to use this code?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2012
    Posts
    290

    Resolved [RESOLVED] How to use this code?

    I've found this code here:
    http://www.planet-source-code.com/vb...d=444&lngWId=1

    I create a module and I paste all the code.

    Well, the next step I want to do is to use that code. So I create a form and a commandbutton1.

    When I press the command button I want to get the information from the selected *.wav file (I've previously selected that file with CommonDialog1 control)

    So, I want to use
    Code:
    GetWaveInfo CommonDialog1.Filename, w = True
    But I don't understand how to use correctly the code and I get an error on w.

    How do I should use the code?

  2. #2
    Hyperactive Member
    Join Date
    Jun 2011
    Posts
    461

    Re: How to use this code?

    Remove "w = " from your code.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2012
    Posts
    290

    Re: How to use this code?

    Quote Originally Posted by MikiSoft View Post
    Remove "w = " from your code.
    It doesn't works.
    Error: ByRef argument type mismatch.

  4. #4

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2012
    Posts
    290

    Re: How to use this code?

    Quote Originally Posted by The trick View Post
    It bad code because RIFF format hasn't fixed chunk position in WAV-file. Inside the RIFF file the chunks can being placed at various position. I gave you the code where there are the universal wav-loader. Of course, explanation is bad trnaslate because my English is bad, but you can ask me how work with any my code. I will answer always.
    Thanks, I'm reading it.

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