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

Apply3D (from Cue) and Dispose (from AudioEngine) is crasing on some speakers configurations

Last post 04-24-2008 8:39 PM by JSpiel. 4 replies.
  • 04-03-2008 10:15 AM

    Apply3D (from Cue) and Dispose (from AudioEngine) is crasing on some speakers configurations

    Hi!

    I have some problems with sound (Xna.Audio). I have tested mine code as well as code from Creator Club on 3 machines - everything works well on 2.0 speakers configuration, but on 4.0 and 7.1 code crashes. There are two places of crash:
        - Apply3D (from Cue class) crashes with ArgumentException,
        - Dispose (from AudioEngine class) crashes with AccessViolationException.

    Is it any way to fix it? I can catch all of the exceptions, but it is not clean way on writing applications.


  • 04-24-2008 7:52 PM In reply to

    Re: Apply3D (from Cue) and Dispose (from AudioEngine) is crasing on some speakers configurations

    I'm having the same problem with crashes on Cue.Apply3D in the Audio3DWindows sample that comes with XNA.

    Everything worked fine on my laptop with a 2-speaker configuration, but when I moved the code and ran it on a surround setup the Apply3D method crashes with the ArgumentException "Value does not fall within the expected range."
    The Apply3D method accepts a listener and an emitter.  The listener has values: Forward={0,0,-1}, Position={0,512,0}, Up={0,1,0}, Velocity={0,0,0}.  The emitter has values: Forward={0,0,-1}, Position={0,0,0}, Up={0,1,0}, Velocity={0,0,0}, DopplerScale=1.0.

    3D sound is kinda useless if it crashes on setups with more than 2 speakers!!!


  • 04-24-2008 8:00 PM In reply to

    Re: Apply3D (from Cue) and Dispose (from AudioEngine) is crasing on some speakers configurations

    We've had some reports of problems with 4 speaker configs, which we'll investigate for our next release.

    The current API works on 2 and 5.1 speaker systems.
    XNA Framework Developer - blog - homepage
  • 04-24-2008 8:08 PM In reply to

    Re: Apply3D (from Cue) and Dispose (from AudioEngine) is crasing on some speakers configurations

    Interesting.  I'll try changing the speaker config and see if that solves the problem.  I'm surprised this is an issue at all (if speaker config really is the issue).  In all my years, I've never seen a speaker configuration causing applications to crash.

    If it works with my 5.1 surround headphones, I'll be happy, since I need this to work for an important experiment that requires precisely placed 3D sounds.  Thanks for the near instantaneous reply too!
  • 04-24-2008 8:39 PM In reply to

    Re: Apply3D (from Cue) and Dispose (from AudioEngine) is crasing on some speakers configurations

    Ok, I've tested some things out.

    5.1 surround sound speakers and all 2-speaker stereo configurations work.

    Quadraphonic speakers crash.
    Surround sound speakers crash.
    7.1 home theater speakers crash.
    7.1 wide configuration speakers crash.

    All CRASH with the same error I mentioned earlier.

    All of those crashing configurations WORK without crashing (but sound horrible) if I disable hardware sound acceleration in the Performance tab of the Advanced Audio Properties (windows xp, control panel, sounds and audio devices, audio tab, advanced button under default sound playback device).

    Appears this box (in my lab) has a "SoundMAX HD Audio" device.  I sure hope this is resolved soon, because 7.1 surround would be very helpful if it worked.  Six speakers would help give more precise directional information then 4 speakers.  See, I'm up here in vancouver/surrey, got people from various schools excited about this and helping me on the hardware engineering side, but  now XNA is misbehaving!  Irritating, hehe.
Page 1 of 1 (5 items) Previous Next
var gDomain='m.webtrends.com'; var gDcsId='dcschd84w10000w4lw9hcqmsz_8n3x'; var gTrackEvents=1; var gFpc='WT_FPC'; /*<\/scr"+"ipt>");} /*]]>*/
DCSIMG