What replaces `GetMixFormat()` (directshow) and similar functions?

3 weeks ago 20
ARTICLE AD BOX

I am not looking to use any external libraries

Context: I have created a program which can get data from my PC speakers and Bluetooth headphones (as well as presumably my microphone) using loopback recording.

DirectShow is obsolete: I needed to get the format of my IAudioClient to check it's actually returning PCM data. For this I used GetMixFormat() but I discovered GetMixFormat() is now obsolete since (A: Link) WAVEFORMATEXTENSIBLE is obsolete and was apart of Directshow.

MMF doesn't provide relevant functions: As I understand it the new recommended way (see A) says to use Microsoft Media Foundation which is the successor to directshow but MMF doesn't seem to have capabilities of getting PCM data from any endpoint device nor does it support format checking other than using files.

Knowing this what should I be using instead?

NOTE: I've asked this question elsewhere incase it doesn't meet criteria.

Read Entire Article