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

Interactive Audio and Transitions

Last post 3/27/2007 9:01 AM by Baltico X. 3 replies.
  • 3/25/2007 11:15 PM

    Interactive Audio and Transitions

    Hi, I am making a game in which music is built dynamically according to events. For example, I the user hits a drum set icon a drum set starts playing, Then if the user hits a guitar, the guitar starts playing. Then when some events happens in the game, I want one of the instruments to silence, preferable not a forced stop but instead something that is in sync with the rest of the instruments that are still playing.

    As audio assets I have an "intro" wave, a "loopable" wave, and a "nice end" wave. This 3 waves are replicated for each instrument. All of them with the same duration in time and in BPS. What I would like is for each instrument to play first the intro, then loop until some other event, then play a nice end...and always in sync with other wave files running at the same BPS.

    I would like to know how this behavior can be modeled in XACT. I read about Interactive Audio and Transitions, but I don;t know if they are supported in XNA for Windows/360

     Thanks in advance for any knowlodge on this matter.

  • 3/26/2007 11:34 PM In reply to

    Re: Interactive Audio and Transitions

    I think you'll find that Xact is really good at letting the sound designer control how things sound, but it's not really built to let the sound designer decide when things sound.  These behaviors you're describing about intros, loops, and outros happening in sync with each other will have to be modeled and implemented in code.

    I'm not sure if this answer is good enough, or if you have further questions about how one might implement said synchronization.  If so, post away at any specific questions you have about the implementation :-)

    Joel Martinez - XNA MVP
    Blog: http://codecube.net
    XNA Unit Testing: Scurvy Test
  • 3/27/2007 7:19 AM In reply to

    Re: Interactive Audio and Transitions

    I guess you would want to bring volume of one channel to zero, while still playing it.

    I still didn't dig that deep in xact to even say how to do it or How to sync start of one sample with end of another in perfect precision. In the mean-time you're on your own in research.

  • 3/27/2007 9:01 AM In reply to

    Re: Interactive Audio and Transitions

    I will implement this functionality in code then, just wanted to know if I was missing a better way to do it. I will post more specific issues as I encounter them.

    Thanks for your time.

Page 1 of 1 (4 items) Previous Next