XNA Creators Club Online
Page 1 of 1 (2 items)
Sort Posts: Previous Next

Do I have to call AudioEngine.Update() per every frame ?

Last post 04-11-2008 11:35 AM by Shawn Hargreaves. 1 replies.
  • 04-11-2008 2:47 AM

    Do I have to call AudioEngine.Update() per every frame ?

    The document says that I need to call AudioEngine.Update() per every frame.

    However, sometimes AudioEngine.Update() falls into sleep(?) so it makes my game frozen. :|

    I checked this situation under debug mode and the program stopped at this line:
         audioEngine.Update();

    and Call Stack Window showed this message:
         [In a sleep, wait, or join]

    I have no idea what happend inside AudioEngine.Update().

    The funny thing is my game works fine without calling this function.

    What should I do?


  • 04-11-2008 11:35 AM In reply to

    Re: Do I have to call AudioEngine.Update() per every frame ?

    The docs are correct: you should definitely call AudioEngine.Update regularly.

    If this is hanging, that's a sign of something going wrong somewhere else that needs to be investigated.

    Does the hang occur on other machines, or only on your one computer?

    If you can put together a repro app that demonstrates this hang, then post it either somewhere you can link to here, or on the Connect site along with a bug report, that would be great.
    XNA Framework Developer - blog - homepage
Page 1 of 1 (2 items) Previous Next
var gDomain='m.webtrends.com'; var gDcsId='dcschd84w10000w4lw9hcqmsz_8n3x'; var gTrackEvents=1; var gFpc='WT_FPC'; /*<\/scr"+"ipt>");} /*]]>*/
DCSIMG