Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 43729
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T15:32:28+00:00 2026-05-10T15:32:28+00:00

This question borders between the world of the audio designer and the programmer. While

  • 0

This question borders between the world of the audio designer and the programmer. While this question might have to be partially answered by that domain of an audio designer, it is sure a problem for the programmer. In our project, we want to loop a sound (background music) while the game timer is greater than one minute left. When this time is hit, we wish to stop the music as authored, and then immediately continue with ending segment. I have been looking into XACT, and it seems to have support for different events. Unfortunately, the documentation is lacking, and the application is somewhat alien to me as a programmer.

What I am looking to do is something along these lines (different approaches):

  1. When the music stops, I want to tie an event to play another sound immediately
  2. When a marker is triggered in the music, I want to play another sound immediately
  3. I would also like to know in my application when some of these events happen

The problem is that I haven’t been able to find any mechanism to auto-play sound when another sound begins and that I can’t find a way to hook up with the events made in the XACT project to C#.

If this can’t be done (i.e. XACT/XNA lacks support for these operations), please gather your ideas on how to solve this problem with minimal cross-sound time errors. Preferably I would be able to control this as much as possible in C# with calls to XNA.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T15:32:28+00:00Added an answer on May 10, 2026 at 3:32 pm

    I think I’ve solved it now

    Here’s how I did it.

    1. Select the Cue which you want to change sound after it has been stopped in XACT.
    2. Set Playlist Type to Interactive.
    3. Open Cue Transitions.
    4. Select View by Destination.
    5. Select the Cue in the (stop) node visible in the tree view.
    6. In Transition Properties at the right side of the tree view, for Source and Destination:
      1. Set Source to End of Loop.
      2. Set Destiantion to Beginning.
    7. In Transition Properties at the right side of the tree view, for Transitions:
      1. Set Transition Type to Direct Concurrent Transition.
      2. Set Transitional Sound to the sound you wish to play after the looping sound has completed its loop.

    Close the window and test it by playing the Cue. Also test to stop it As Authored to see if the behaviour fulfilles your expectations.


    Implementation

    In code, Stop the Cue As Authored to get this behaviour. Immediate stops the cue without playing the sound outro. I hope this helps other people who might run into this problem in the future. The question and answer wasn’t that much code oriented as I thought initially. Also, this applies for XNA 2.0. I don’t know if there will be other options for controlling this kind of behaviour in XNA 3.0+.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 142k
  • Answers 142k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer It's not clear to me that you would always want… May 12, 2026 at 8:15 am
  • Editorial Team
    Editorial Team added an answer Yeah, it's typically because it starts out as 'where 1… May 12, 2026 at 8:15 am
  • Editorial Team
    Editorial Team added an answer I think this is because the child window no longer… May 12, 2026 at 8:15 am

Related Questions

How should CSS 'margin' and 'padding' be used for vertical inter-paragraph spacing: Can the
I am trying to build a Google Maps-driven web application that can display a
Im looking for an algorithm to be used in a racing game Im making.
I manage a group of programmers. I do value my employees opinion but lately

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.