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

altering a cues sound falloff property

Last post 02-20-2008 1:55 PM by David Hunt. 3 replies.
  • 02-18-2008 12:40 PM

    altering a cues sound falloff property

    Hi all,

    I got the task of implementing a new feature to our own level editor.
    We actually want to display a cues volume range as a sphere and alter it afterwards in that editor.
    How can I alter for example the sound's volume over distance afterwards?
    What would be the best way to do that?

    Thanks for any thoughts!

  • 02-18-2008 1:28 PM In reply to

    Re: altering a cues sound falloff property

    I don't have access to XACT from where I am so I can't give precise instructions, but the basic gist is this - In XACT, associate a variable with the property you want to alter. In your code, you can get/set the value of the variable and it will automatically alter the associated property in realtime.

     

  • 02-20-2008 8:58 AM In reply to

    Re: altering a cues sound falloff property

    Thanks for the quick reply David!

    What you propose isn't really what I'm looking for.
    Let's say I created a new RPC which holds my new variable Var01 which then controls a cue's volume.
    The Var01 curve in that RPC consists out of 4 points.
    I need to know each's points Var01 value and the corresponding volume value. So I can determine at which points I got the highest and the lowest volume.

    I read through the docs and went trough the source code and everything and I don't believe that this is possible since this could also enable me to alter a variable's curve afterwards through code and that probably was never the XACT developers' intention.

    Is there maybe another way?

  • 02-20-2008 1:55 PM In reply to

    Re: altering a cues sound falloff property

    I think you're right. That's pretty much beyond what XACT was intended. There might be a way, but I can't think of one off the top of my head.

     

Page 1 of 1 (4 items) Previous Next