I am graduate student trying to manipulate an existing program. Basiclly, the user is tasked to follow a target around with a joystick. I want the program to have a pulse rate associated with the position of the target. I've managed to find the section in the code where the position is calculated/determined, now I just need to add a conditional so that a particular .wav file plays. I have a smattering of programming experience, I've just never used sound. I'm in Visual Basic 6. I just need a quick instructional on how to add sound.
+1
A:
Here's a quick sample of how to use the Win API to do this. Also, here's a more detailed answer from Microsoft.
Jon B
2009-04-01 14:51:23