[wdmaudiodev] Re: Simple loopback audio driver
- From: Tim Roberts <timr@xxxxxxxxx>
- To: "wdmaudiodev@xxxxxxxxxxxxx" <wdmaudiodev@xxxxxxxxxxxxx>
- Date: Mon, 7 Mar 2016 11:06:53 -0800
Олег Герасимчук 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 Build 7601).
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.
Other related posts: