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

相关文章:

  • 2022-01-14
  • 2022-12-23
  • 2022-12-23
  • 2021-10-26
  • 2021-07-24
  • 2021-11-24
  • 2021-04-16
  • 2021-11-16
猜你喜欢
  • 2022-01-16
  • 2022-12-23
  • 2021-09-01
  • 2022-12-23
  • 2022-01-18
  • 2021-12-21
  • 2021-07-15
相关资源
相似解决方案