Hi everyone
Im writing a windows program in which I use PlaySound() to, well, play a
sound. In this case, the sound is quite long/big so whenever a call to
PlaySound() is made to play this sound, the program stops for a while, loads
it (Im guessing), and then starts playing.
I would like to be able to load the sound before I have to play it. In much
the same way as many games have a loading period before the game starts
(where it says loading
please wait) I would like to load my resources into
memory and inform the user that I am loading at the start of the program.
I believe that some functions like LoadBitmap() and LoadIcon() do the job of
loading into memory (not informing that were loading) but there is no such
function for a WAVE resource (used by PlaySound()). I thought that
LoadResource() might do the job (Im getting these functions from some Win32
SDK documentation) but it doesnt.
So if anyone knows how to do this could you please tell me?
Thanks,
Ramana
|