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

modify start point in sample in XACT?

Last post 8/26/2009 9:37 PM by Matthew Doucette. 4 replies.
  • 9/15/2008 6:21 PM

    modify start point in sample in XACT?

    Can I modify where a sample starts to play in XACT (i.e., start playing sample at 0.2 seconds in)?

    EDIT: Here's a connect issue: https://connect.microsoft.com/feedback/ViewFeedback.aspx?FeedbackID=497996&SiteID=226
  • 9/15/2008 7:31 PM In reply to

    Re: modify start point in sample in XACT?

    Are you trying to play the sample skipping the first 0.2 seconds or are you trying to delay the start of the entire sample by 0.2 seconds? To delay the start of the sample you can modify the "Time Stamp" property on the Play Wave event for that sound.
    Ashu Tatake
    XNA Framework Developer
  • 9/15/2008 7:56 PM In reply to

    Re: modify start point in sample in XACT?

    Ashu Tatake:
    Are you trying to play the sample skipping the first 0.2 seconds or are you trying to delay the start of the entire sample by 0.2 seconds? To delay the start of the sample you can modify the "Time Stamp" property on the Play Wave event for that sound.

    I want to play the sample immediately, no delay, at 0.2 seconds into the sample.

    Reason being, lots of explosion and other quick sounds wait too long to get started, and the delay is preceptible in my game.

  • 9/15/2008 11:45 PM In reply to

    Re: modify start point in sample in XACT?

    Ah, in that case I'm not sure starting the cues with an offset would solve what you're seeing. How/when are you creating and triggering the cues? The playback latency for a "prepared" cue should be minimal. Also what types of wavebank (in-memory or streaming) are you using? For short "twitch" effects like explosions, gun-shots etc. in-memory wavebank (non-streaming) are more efficient as the cue doesn't need to stream in any audio when it starts.    
    Ashu Tatake
    XNA Framework Developer
  • 8/26/2009 9:37 PM In reply to

    Re: modify start point in sample in XACT?

    Ashu, sorry to resurrect an old thread, but I now want to skip ahead in a sample for a different reason:  I have a song that I use throughout my game but wish to skip the "opening" or "intro" section to it and jump immediatly into the juicy part.  From my testing (and as you said early) the time stamp property is a delay, so I cannot skip ahead into my song 45 seconds immediately with that variable.

    Is there any way for me to immediately jump right into a deep section within a song?
Page 1 of 1 (5 items) Previous Next