Thanks Tim, I thought about it. I am new in driver development.
And what synchronization technique I must use? CopyFrom and CopyTo may call
in any IRQL.
2016-03-07 21:06 GMT+02:00 Tim Roberts <timr@xxxxxxxxx>:
Олег Герасимчук wrote:
I wrote some simple virtual audio driver based on MSVAD Simple example. It
just copying data from its wave out pin (speakers) to its microphone. It
works fine, but sometimes my driver crash on my Windows (Win 7 x64 SP1
Here is what I just changed (*basedma.cpp*) in an example:
I don't think anyone guarantees that CopyFrom and CopyTo won't both be
called at exactly the same time. Since both are accessing the same data, I
think you need a lock in there.
Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.