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

IXACT3SoundBank and XACT_CUESTATE_STOPPED

Last post 05-05-2008 8:59 PM by Bjoern Graf. 7 replies.
  • 04-30-2008 8:55 AM

    IXACT3SoundBank and XACT_CUESTATE_STOPPED

    Hi,

    is it possible to query a sound bank for all the cues it contains and their corrosponding instances for the XACT_CUESTATE_STOPPED state? So I know for sure when the sound bank isn't used anymore?

  • 04-30-2008 9:25 AM In reply to

    Re: IXACT3SoundBank and XACT_CUESTATE_STOPPED

    Well, there's IXACT3SoundBank::GetState() that might provide the info that you want.

    Another way might be to loop through IXACT3SoundBank::GetNumCues(), call IXACT3SoundBank::GetCueProperties() for each index and check XACT_CUE_PROPERTIES::currentInstances to see if there are any active cue instances.

    We are boki. The rest is known.
    The not so known part of the rest: It is Björn or Bjoern, but never Bjorn.
    Vote: Allow use of non-ASCII characters in names and titles
  • 04-30-2008 10:15 AM In reply to

    Re: IXACT3SoundBank and XACT_CUESTATE_STOPPED

    That doesn't seem to work.
    After a call to Stop() with flag XACT_FLAG_SOUNDBANK_STOP_IMMEDIATE , XACT_CUE_PROPERTIES::currentInstances does not get set back to 0;

    This soundbank just holds one cue total at the moment.
    This is an interactive cue with 5 variations. As I take it from the documentation:

    Index of the cue to be stopped.
    Note    All instances of the cue that are specified by nCueIndex are stopped.

    So everything gets stopped, therefore no need for XACT_CUE_PROPERTIES::currentInstances to stay != 0 right?

  • 04-30-2008 12:34 PM In reply to

    Re: IXACT3SoundBank and XACT_CUESTATE_STOPPED

    I presume that the currentInstances get decresed when IXACT3Cue::Destroy is called, not when the cue is stopped only. What's your overall goal?
    We are boki. The rest is known.
    The not so known part of the rest: It is Björn or Bjoern, but never Bjorn.
    Vote: Allow use of non-ASCII characters in names and titles
  • 05-02-2008 5:55 AM In reply to

    Re: IXACT3SoundBank and XACT_CUESTATE_STOPPED

    I want to make sure that I Destroy() a sound bank only when all its cues and their instances are stopped and I dont have to "fear" any callbacks from that soundbank anymore.
    It seems as if the XACTNOTIFICATIONTYPE_SOUNDBANKDESTROYED callback isn't the last coming from a "dying" soundbank. (I still receive cue stop notifications)
  • 05-03-2008 3:11 AM In reply to

    Re: IXACT3SoundBank and XACT_CUESTATE_STOPPED

    Well, my quick testings showed that the any pending cue notification are send before the sound bank destroyed notifications even without stopping the cues explicitly. Same applies to stopping a cue (with XACT_FLAG_SOUNDBANK_STOP_IMMEDIATE) and XACT_CUE_PROPERTIES::currentInstances == 0. Maybe your sound bank cue index map got corrupted by somehow.
    We are boki. The rest is known.
    The not so known part of the rest: It is Björn or Bjoern, but never Bjorn.
    Vote: Allow use of non-ASCII characters in names and titles
  • 05-05-2008 8:44 AM In reply to

    Re: IXACT3SoundBank and XACT_CUESTATE_STOPPED

    Just out of curiosity, did you test using an interactive cue?
    Because that's what I'm having "problems" with.

  • 05-05-2008 8:59 PM In reply to

    Re: IXACT3SoundBank and XACT_CUESTATE_STOPPED

    Interactive cues seem to be no problem here either.
    We are boki. The rest is known.
    The not so known part of the rest: It is Björn or Bjoern, but never Bjorn.
    Vote: Allow use of non-ASCII characters in names and titles
Page 1 of 1 (8 items) Previous Next