How can I decode a wav file (RIFF) containing PCM data on Windows into raw samples (so that I can feed it to ASIO) on win32?
I don't have time to reinvent the wheel. If there's a library out there that does the whole "play a wav file into ASIO" thing at once, that would be nice. ASIO is simple enough, though, and has many examples for Windows online. If only I had the wav file as raw PCM data to feed to it!
I've tried to use libsndfile, but there aren't any examples of how to use it on Windows out there, and it will not compile on Windows. (They cross-compile it and release a binary currently.)
There HAS to be a way to do this using the MS API... what is it?
It would be nice if it converted it to 16 bit 44.1 kHz audio so that I can feed it to ASIO, but I can deal with hooking the two bits together, if only someone can give me a hint as to how to decode a wav file into raw samples on Windows,