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

XAudio2, XAPOFX Effects and VolumeCurves

Last post 18/09/2009 19:37 by Bjoern Graf. 3 replies.
  • 13/09/2009 12:57

    XAudio2, XAPOFX Effects and VolumeCurves

    Hello,

    I am using XAudio2 and have two questions about the built-in effects.

    1) XAudio2 built-in effect: "Volume Meter".
    For what reason can this be useful or needed (in a game)? This can just display volume levels?

    2) In XAPO, there is a XAPOFX class having a few more effects. I do understand these except one: "FXMasteringLimiter" -> A volume limiter.
    For what reason should I use a volume limiter, if I can control the volumes manually on each SourceVoice? What kind of reason should I have to put this on a MasteringVoice? What kind of goal can I reach with this?

    Last but not least: Does someone have experiences with volumecurves in XAudio2 (especially X3DAudio) to control the volume rolloffs per distances? How do I set the maximum volume distance per each emitter, does every emitter need to have it's own volumecurve then? The CurveDistanceScaler factor shouldn't be changed, when it's correctly setup?

    Thanks for any help.

    Regards,

    Iveco
    Regards from Germany
  • 14/09/2009 15:45 In reply to

    Re: XAudio2, XAPOFX Effects and VolumeCurves

    I need a small help with volume curves & distances.

    It works fine I can hear a difference in the loudness when I am near or far from the object, but the problem is the volume never goes really down to zero even if DSPSettings.pMatrixCoefficients[0] and DSPSettings.pMatrixCoefficients[1] are both 0.0 (correct with the right CurveDistanceScaleFactor) (I am using the default linear curve) - so that I can still hear the object in thousands of meters away. It works fine in the 3DExample, but I followed it explicitly and when I have 0.0 & 0.0 pMatrixCoefficients I still hear the sound. What can be the reason for this? My Curve is: 0.0, 1.0, 1.0, 0.0 and the matrixcoef's are correctly to 0.0 at my wished distance but I can still hear a sound.

    Edit:
    The problem has been solved. I noticed that a change via SourceVoice->SetChannelVolumes() (with the values from pMatrixCoefficients) worked fine. After further investigation, I found out that the problem was the SourceVoice's sendlist. After using a correct sendlist I was able to use SetOutputMatrix() again.
    Regards from Germany
  • 18/09/2009 16:39 In reply to

    Re: XAudio2, XAPOFX Effects and VolumeCurves

    All questions and problems have been solved. If anyone wants to know something just message me.
    Regards from Germany
  • 18/09/2009 19:37 In reply to

    Re: XAudio2, XAPOFX Effects and VolumeCurves

    These forums do not sport a messaging function so it might be worth to consider adding the answers/solutions to this thread.
    We are boki. The rest is known.

    The not so known part of the rest: It is Björn or Bjoern, but never Bjorn.

    Twitter ~ Bnoerj ~ SharpSteer ~ SgtConker.com
Page 1 of 1 (4 items) Previous Next