Under load, I am getting an occasional AccessViolation in WDMAUD.DRV, and my application is crashing.
Comments: This could be related... We appear to sometimes get a WaveStillPlaying result when calling waveInUnprepareHeader - causing the recording to be terminated. Looks like the callback has been triggered with a buffer that is not really 'done'. Have you ever seen this before? I notice that the handler for this calls RaiseRecordingStopped after setting 'recording' to false - but what state will the sound card be in? i.e. is a call to waveInStop/Reset required when this occurs?
Comments: This could be related... We appear to sometimes get a WaveStillPlaying result when calling waveInUnprepareHeader - causing the recording to be terminated. Looks like the callback has been triggered with a buffer that is not really 'done'. Have you ever seen this before? I notice that the handler for this calls RaiseRecordingStopped after setting 'recording' to false - but what state will the sound card be in? i.e. is a call to waveInStop/Reset required when this occurs?