Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mouse Move and Audio

Status
Not open for further replies.

Naclose

Programmer
Apr 28, 1999
1
US
Ok i having trouble stopping a normal audio play back and reseting it to play another one. I'm using an audio ole and the doverb commands. The problem I having is that when I move over an object with the mouse it plays the audio but if i move the mouse over another object i get an error because the another wave file is already bieng played. Any tips on how to correct this problem would be great.
 
okay, i've never actually seen what you're up to there, but I'll bet there's some sort of stop command you could send.&nbsp;&nbsp;why not send that whenever the mouse is over either, and then, only after the stop command, send the command for playing audio. <p> <br><a href=mailto:ille_pugil42@hotmail.com>ille_pugil42@hotmail.com</a><br><a href= Page</a><br>Linux rox! Get with the program and ditch the RGBY Virus!
 
Hi Naclose!<br><br>Try using the PlaySound win32 API call instead of the MCI commands.&nbsp;&nbsp;The sounds play asynchronously, and a new sound will start immediately when you call PlaySound again.<br><br>Chip H.<br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top