I am using Visual Studio 2010 and have included these headers:
#include <Audioclient.h>
#include <mmdeviceapi.h>
Referencing, among others, these functions:
CoCreateInstance
IMMDeviceEnumerator::GetDefaultAudioEndpoint
IMMDevice::Activate
I've linked winmm.lib, but I'm getting errors like this:
Error 8 error LNK2001: unresolved external symbol _IID_IMMDeviceEnumerator C:\XXXX\XXXX\XXXX.obj XXXX
What .lib file do I need to link to pick up these functions? Is there any guidance on how to find the .lib associated with a .h file in VS 2010?
I'm looking at some example code from MSDN, but I can't find which library needs to be linked.