main logo
Subject: PlaySound() Win API occassionally plays sound twice
Author: "Malcolm Greene"
Posted: 2006/10/31 13:17:41
 
View Entire Thread
New Search


Charlie/Andy,

> declare integer PlaySound in WinMm.dll as WinPlaySound string pcWavFile, integer nModule, integer nPlayFlags

When I use the PlaySound API from VFP, occassionally it will double play
the sound. This happens even if I run the API function manually from the
VFP command window. Happens randomly, but about every 3 or 4 times I
play my click.wav file.

I've tried running synch and asynch and pausing between runs. Still,
that DAMN!!!! *random* double click.

When I play the click.wav file from Windows Media Player its a single
click every time.

Does this <bad pun> ring a bell</bad pun> with anyone?

Thanks,
Malcolm

My sample click.wav at (all lowercase URL) if anyone is interested in
seeing if this is a reproducible problem:

www.bdurham.com/downloads/click.wav

PS: Just tested with QuickTime player and same mysterious double click
every 3 or 4 random plays. Sounds like I have a bad click.wav file???



 
©2006 Malcolm Greene
<-- Prior Message New Search Next Message -->