
Originally Posted by
20thCenturyBoy
Hi all,
I have written my first game using Win32 and C, the old fashioned way. I know, I must be a masochist. Anyway, I want to add a sound effect when a row is completed (can you guess the genre yet?!). So I use PlaySound() to load the .wav from my resources and play it asynchronously. This works, but the first time it is played there is a noticeable pause in the game as the sound is loaded. It pauses for about one second. After that I guess the sound is cached because it plays quickly. Anyway, how can I fix the pause when the sound is loaded? Is there a way to preload sounds at the beginning of the game, without actually playing them?
If I must use DirectX, can I just use the audio part and nothing else?
Thanks,
20thCB