Results 1 to 17 of 17

Thread: [RESOLVED] How to obtain buffer data from live audio?

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2012
    Posts
    290

    Resolved [RESOLVED] How to obtain buffer data from live audio?

    I'm working with audio and I've a question about how can I obtain the wave audio information from the buffer.
    As you know, in the *.wav file the audio information starts (usually) from the byte #45. Before byte #45 there are other kind of informations about the file as the number of channels, bits per sample, etc...

    I want to obtain from the live audio the same information (like in the #45 byte and following ones of the *.wav file), but I don't know how to obtain those bytes from the live audio. So I ask you.

    I'm using this structure to obtain live audio from the wave input device (I've just only one in my system, so its ID will be 0).

    Note: I'll use 8 bits, Mono because is the easiest case.

    I use the apis
    • waveInGetNumDevs
    • waveInGetDevCaps
    • waveInOpen
    • waveInStart
    • waveInPrepareHeader
    • waveInAddBuffer
    • waveInUnprepareHeader
    • waveInReset
    • waveInClose




    I think it's inside the sub Visualize and I've to read the InData matrix, but I'm not sure.

    vbforums.zip
    Last edited by Jose_VB; Jul 19th, 2015 at 05:14 AM.

Tags for this Thread

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