IMMDevice::Activate and specifying IID_IBaseFilter as the interface identifier

Posted wainiwann

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了IMMDevice::Activate and specifying IID_IBaseFilter as the interface identifier相关的知识,希望对你有一定的参考价值。

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的主要内容,如果未能解决你的问题,请参考以下文章

Intel‘s EPT and AMD‘s NPT - Hardware Virtualization: the Nuts and Bolts

UVA - 11920 0 s, 1 s and ? Marks

sql and和or的问题

1006 Tick and Tick

为啥我收到 TypeError: unsupported operand type(s) for -: 'str' and 'int'

Kuratowski's and Wagner's theorems