Now that I have my MinGW64 version of JUCE compiling with WASAPI support, I'm on to the next issue... a failure when trying to detect / initialize WASAPI. This makes me question whether my fixes to get JUCE compiling on MinGW64 have broken something further down the line (http://www.juce.com/forum/topic/compiler-error-mingw64-windows-10).
juce::WasapiClasses::WASAPIAudioIODeviceType::scan juce_win32_WASAPI.cpp:1544 if (! check (enumerator.CoCreateInstance (__uuidof (MMDeviceEnumerator)))) return; results in "WASAPI error: 800401f0"
Basically, when CoCreateInstance(__uuidof (MMDeviceEnumerator)) runs, it returns an HRESULT of -2147221008 (i.e. 0x800401F0 - CO_E_NOTINITIALIZED). When I compile this same example in Visual Studio 2010, it works fine (on the same computer). So, this seems to be clearly related to the compiling on MinGW64... and something going wrong with these COM wrappers and macros. =)
If anyone has some ideas as to what's causing this, or any possible work-arounds, I would be super appreciative!