I can't set the callback function for the waveOutOpen () windows API call. Here is my callback function:
procedure Callback (hWave: HWAVEOUT; uMsg: UINT; dwInstance:DWORD; dwParam1:DWORD; dwParam2: DWORD);
if (uMsg = MM_WOM_DONE) then
and here is my waveOutOpen () system call:
This works fine without callback function. Why doesn't this work with this callback function ? The system crashes or tells me about an illegal read...