Advertisement

Very simple question from a newbie...

Started by April 01, 2002 04:07 PM
2 comments, last by fc6rk 22 years, 10 months ago
How do you set up a play sound funtion to play a repeat a wave file without affectig the program. I would like my program to play a sound file called pacman.wav over and over again as the music. It is in a folder called "Data"... Thanks!
sndPlaySound

DirectSound

To the vast majority of mankind, nothing is more agreeable than to escape the need for mental exertion... To most people, nothing is more troublesome than the effort of thinking.
To the vast majority of mankind, nothing is more agreeable than to escape the need for mental exertion... To most people, nothing is more troublesome than the effort of thinking.
Advertisement
Thanks, but, I put this in, but now my program is so incredibly slow it won''t even work. Please help!

sndPlaySound("Data/pacman.wav" , SND_LOOP);
sndPlaySound("Data/pacman.wav" , (SND_LOOP | SND_ASYNC));

if the performance is not adequate then you will look into DirectSound. unfortunately, i will not be able to teach you DirectSound. the link above should provide information as well as searching gamdev.

To the vast majority of mankind, nothing is more agreeable than to escape the need for mental exertion... To most people, nothing is more troublesome than the effort of thinking.
To the vast majority of mankind, nothing is more agreeable than to escape the need for mental exertion... To most people, nothing is more troublesome than the effort of thinking.

This topic is closed to new replies.

Advertisement