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

  • From: e-t172 <e-t172@xxxxxxxxxxxx>
  • To: wdmaudiodev@xxxxxxxxxxxxx
  • Date: Mon, 14 Jun 2010 15:11:09 +0200

Hi,

I'm currently having issues getting the GFX sAPO "swap" sample of the "sysfx_reuse" package[1] to work.

Note that I'm not developing an audio driver. I'm just very interested in the potential of custom sAPOs, so I want to try and develop a standalone GFX System Effects APO for my personal use.

I successfully compiled the "swap" sample sAPO DLL in a Windows 7 x64 Checked Build Environment (using the latest DDK), and registered it using regsvr32. I also set DisableProtectedAudioDG to 1 under HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Audio.

Then I modified the following registry entry:

HKEY_LOCAL_MACHINE
SOFTWARE
Microsoft
Windows
CurrentVersion
MMDevices
Audio
Render
{f297526b-9a8b-41a8-af90-ee786a0849b1}
FxProperties
{d04e05a6-594b-4fb6-a80d-01af5eed7d1d},2

{f297526b-9a8b-41a8-af90-ee786a0849b1} is the ID of the audio device I want to test the sAPO on (it is a Realtek HD Audio device). In this registry entry, I wrote the UUID of the SwapApoGFX coclass:

{06687E71-F043-403A-BF49-CB591BA6E103}

I then restarted the Windows Audio service. I expected the output channels of the device to be swapped by the GFX sAPO I just installed. Unfortunately, that wasn't the case.

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.

So, I have some questions:
- What could possibly cause this issue?
- What can I do to pinpoint the cause of such failures? I tried to attach a debugger to audiodg.exe, but it isn't showing anything useful.

Thanks in advance for your help.

[1] http://www.microsoft.com/whdc/device/audio/vista_sysfx.mspx

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

Other related posts: