All Forums
 Microsoft Windows CE
 CE Audio and Multimedia
 "Access Denied" when trying to play a sound twice
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Author Topic  

KnowledgeBase

296 Posts

Posted - 26 Feb 2002 :  13:38:26  Show Profile  Email Poster
Q: I get the error "Access Denied" when I try to open my audio file after playing it.

You may be using the SND_ASYNC flag when playing the audio file. This allows the function to return immediately after being called. Try using the SND_SYNC flag, which doesn't return from the function till the file has completed playing out.

sndPlaySound(_T("\\mywav.wav"), SND_ASYNC);

For further reading about Windows CE audio, please see the CE Audio topic index.

------------------
ADS Knowledge Base
  Topic  
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Jump To:
Eurotech Support Forums © Eurotech Inc. Go To Top Of Page
This page was generated in 0.02 seconds. Snitz Forums 2000