码迷,mamicode.com
首页 > 其他好文 > 详细

IMMDevice::Activate and specifying IID_IBaseFilter as the interface identifier

时间:2017-10-31 18:54:59      阅读:203      评论:0      收藏:0      [点我收藏+]

标签:window   log   more   tps   span   his   zh-cn   str   ase   

Use the IMMDevice pointer to the endpoint returned by the enumeration process to activate the desired audio streaming API and prepare for streaming. Different audio APIs require slightly different preparation.
For DShow audio applications:
Create a DirectShow COM object by calling IMMDevice::Activate and specifying IID_IBaseFilter as the interface identifier.

IUnknown *pDShowFilter = NULL;
...
hr = pDevice->Activate (
                  IID_IBaseFilter,
                  CLSCTX_INPROC_SERVER, NULL,
                  reinterpret_cast<void **>(&pDShowFilter));


Build a DirectShow filter graph with this COM object activated by the device. For more information about this process, see "Building the Filter Graph" in DirectShow SDK documentation.

https://msdn.microsoft.com/zh-cn/library/windows/hardware/dd756608(v=vs.85).aspx

IMMDevice::Activate and specifying IID_IBaseFilter as the interface identifier

标签:window   log   more   tps   span   his   zh-cn   str   ase   

原文地址:http://www.cnblogs.com/wainiwann/p/7762560.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!