Voice capture DMO for Metro

Category: windows metro apps games


Ken Roe on Sun, 26 Aug 2012 17:24:59

Is the voice capture DMO available for use in Metro apps?  What is the best approach to using the module?  I was an aecSDKDemo for Windows 7.  Is there a sample file I can look at for Metro?

- Ken


James Dailey - MSFT on Mon, 27 Aug 2012 20:48:22

Hello Ken,

We don't have a sample akin to the AEC DMO sample for Windows store apps. However WASAPI is supported from your Windows store app. I haven't looked closely at the sample but I would expect that you can convert the DMO sample into code that can be called from your C++ Windows store app. If you have any specific issues with the conversion please let me know and I will do what I can to help you.

I hope this helps,


Ken Roe on Mon, 27 Aug 2012 21:12:34

The specific issue with this example is that in addition to WASAPI, there is the following line of code:

CHECKHR(CoCreateInstance(CLSID_CWMAudioAEC, NULL, CLSCTX_INPROC_SERVER, IID_IMediaObject, (void**)&pDMO));

This line calls in a separate DLL through the COM interface for doing the voice processing.  I saw in other emails that this interface is supported for some object types but not all.  Will the above line work in a Metro app?

- Ken

James Dailey - MSFT on Tue, 28 Aug 2012 22:06:04

Hello Ken,

That is a good question. Technically the Voice Capture DSP is marked as destkop only. That said I think it really depends on where the topology is created. I don't know that you will be able to directly instantiate this object but you might be able to add it to the topology through one of the "add effect" APIs. However, you are treading on untested terretority and you need to be careful because things might now work as you expect.

I hope thsi helps,