ms-media-foundation

Windows Media Foundation recording audio

柔情痞子 提交于 2019-11-26 18:33:04
问题 I'm using the windows media foundation api to enumerate both my microphones and available cameras, which both work. Here is my enumeration code: class deviceInput { public: deviceInput( REFGUID source ); ~deviceInput(); int listDevices(bool refresh = false); IMFActivate *getDevice(unsigned int deviceId); const WCHAR *getDeviceName(unsigned int deviceId); private: void Clear(); HRESULT EnumerateDevices(); UINT32 m_count; IMFActivate **m_devices; REFGUID m_source; }; deviceInput::deviceInput(