Recorder with SetWindowsHookEx

Last post 02-03-2010 20:56 by rferreira. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 02-03-2010 14:54

    Recorder with SetWindowsHookEx

    Hello all,

    I'm trying to capture sound when the side keys of mobile device is pressed, but when keyboard hook is active the Recorder does not work well. The RecordFor does not call the DoneRecording event and when I manually call Stop the buffer appear to be corrupted.

    Someone could help me?

     Thanks,

     Renato

  • 02-03-2010 18:42 In reply to

    • ctacke
    • OpenNETCF Staff
    • Top 10 Contributor
    • Joined on 07-27-2007
    • Indiana
    • Posts 2,163

    Re: Recorder with SetWindowsHookEx

    This is certainly not something we've seen.  I wonder if the hook is eating too much of the processor and the system doesn't have the bandwidth to process the audio stream.  Try increasing the recording thread priority and see what happens (though I'm not certain at what priority the hook proc itself runs).

  • 02-03-2010 20:56 In reply to

    Re: Recorder with SetWindowsHookEx

    I remade the class and it worked, but now the keyboard hook stop working in a few time of program execution. The application appear to hang and the side keys come back to do their old job in OS, that is change the volume level.

Page 1 of 1 (3 items)