I am playing a little with recording from the soundcard and im wondering if i can write the samples to the disk (using fwrite) from withing the callback function. MSDN states te folowing:
Applications should not call any system-defined functions from inside a callback function, except for EnterCriticalSection, LeaveCriticalSection, midiOutLongMsg, midiOutShortMsg, OutputDebugString, PostMessage, PostThreadMessage, SetEvent, timeGetSystemTime, timeGetTime, timeKillEvent, and timeSetEvent.Calling other wave functions will cause deadlock.
(from http://msdn.microsoft.com/library/de...waveinproc.asp )
I believe this is a little ambiguous. Should i NOT call system functions, or should i NOT call wave functions. What does "system functions" mean anyway? Are that all function from windows??