[wdmaudiodev] Re: sAPO: "swap" sample doesn't work

  • From: e-t172 <e-t172@xxxxxxxxxxxx>
  • To: wdmaudiodev@xxxxxxxxxxxxx
  • Date: Tue, 15 Jun 2010 00:35:27 +0200

On 14/06/2010 15:11, e-t172 wrote:
The sample code writes a log file in C:\wmdsplog, so I took a look at
it. It appears that the Initialize method of the SwapApoGFX is indeed
being called (and returns S_OK) when I open the device properties in the
Control Panel applet, but that's all: nothing is written to the log when
I'm actually playing an audio stream. This indicates that the sAPO is
used by the control panel applet, but not during actual audio rendering.

Okay, I just found out. Turns out this was a very stupid permission issue. While testing I was naively registering DLLs located on my Windows Desktop… the control panel applet of course had sufficient permissions to access the DLL, but the Windows Audio service, running as LocalService, did not. I moved the DLLs elsewhere and it worked fine :)

It's a shame there is no way to get any kind of error information when this happens. Even the event log is silent. Losing several hours of work for such a stupid issue just because I didn't receive something as simple as an "Access Denied" message is just absurd.

--
Etienne Dechamps / e-t172 - AKE Group
Phone: +33 6 20 41 09 29

Other related posts: