I did some experimenting and tried to implement sound with WASAPI instead of DirectSound. For some reason, calling to CoCreateInstance to get an IMMDeviceEnumerator makes my compile take around 20 seconds instead of being instant. Anybody have any ideas why? I'd imagine it's something obvious that I'm not knowledgeable enough to see.
EDIT: Changed the thread subject for clarity.