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
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).
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.