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!

Wav File Doesn't Always Play

Status
Not open for further replies.

IPNI

Programmer
Jan 17, 2002
4
US
My code
bool Result=PlaySound("c:\\ipni\\chime2.wav", NULL, SND_FILENAME | SND_SYNC | SND_NOWAIT);

Sometimes this returns FALSE and I have no audio for that ring. Rings are positioned about 3 seconds apart - wav file is about 2kb (small).

According to MSDN
SND_NOWAIT
If the driver is busy, return immediately without playing the sound.

What would be accessing the "driver"

PlaySound is activated when I have a video call incoming - there isn't any other user action going on - the call is setting up with CAPs exchange, CODEC negotiation, etc.

thanks for help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top