long time sound recording problems

2»

Comments

  • thanks jonathan,
    i have been out of this world for a while.
    while playing the data,
    1)lock memory
    2)copy sound data to the pointer returned by globallock.
    3)prepare the bufer
    4) send it to the driver.


    for recording..
    lock memory, send to the queue, get the recorded data.
    is this not the procedure...please clarify.



    Regards
    srikanth

  • jasonjason United Kingdom
    Hi guys.

    Been a month or so since you started this one, any luck?

    Regards, Jason
  • hi jason
    I was off the track for some time, some personal work, started working again. problem not yet solved.


    Regards
    srikanth

  • : thanks jonathan,
    : i have been out of this world for a while.
    : while playing the data,
    : 1)lock memory
    : 2)copy sound data to the pointer returned by globallock.
    : 3)prepare the bufer
    : 4) send it to the driver.
    :
    I've always just malloc'd the buffer myself, but that sounds fine.

    : for recording..
    : lock memory, send to the queue, get the recorded data.
    : is this not the procedure...please clarify.
    :
    So far as I'm aware, use waveInOpen to get a handle for reading wave data. You use waveInPrepareHeader, again creating buffers like you did for output, but of course this time you don't copy data into them. You then call waveInAddBuffer to add this buffer to the queue of buffers waiting to be filled. When the buffer has been filled, the callback function (or event, or whatever) is called. You then take it and process it.

    Jonathan

    ###
    for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&&
    (tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;
    /(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories