CALLBACK_FUNCTION causing crashes?

  • Thread starter Thread starter drfarina
  • Start date Start date
D

drfarina

I have been trying to record audio on a K-Jam I-mate. Somewhat
flabberghasted by the fact that the P/Invoke samples[0] don't seem to
work on the emulator or hardware because it doesn't propertly receive
MM_WIM_DATA messages through the Message Window (they only record the
initial two buffers worth of audio), I tried another implementation
found in the wild. This one worked, but when I used it it refused to
terminate correctly on an Application.Exit()[1]. I had then decided to
alter the P/Invoke sample to use the CALLBACK_FUNCTION flag, confirming
that this change seemed to cause this issue.

Does anyone have any suggestions on how I can solve this issue?


0:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/WaveInOut.asp
1:
http://www.codeproject.com/cs/media/cswavrec.asp
 
Back
Top