Hi,
I'm currently interested in playing a sound in win32 API. I found out that the function PlaySound() does pretty well. However, none of the examples I have seen specify how to use PlaySound with SND_MEMORY, that is, playing a sound that is in the memory. Using the function to open a file and play it is too time consuming (At minimum it took 60ms on my machine.). So, I want to load the sound into memory, and play it using the function. How can I do this? Is there any special way to read in the file? (Like, do I have to throw away the header, etc?). And, if not, how can I get the size of the file to allocate memory for the file? Thank you.