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

  • SEARCH
  • Home
  • 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 775349
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T19:16:28+00:00 2026-05-14T19:16:28+00:00

I have two sound files: Sound A is an 18 second intro designed to

  • 0

I have two sound files:

  • Sound A is an 18 second intro designed to be played once
  • Sound B is a 1 minute looping track

I’d like to play Sound A once, then once Sound A is done, immediately play Sound B and keep looping Sound B until I tell it to stop. This is supposed to be looping town music in an RPG.

I’ve tried doing this in code using just SoundEffect, but there’s a tiny yet noticeable gap between the end of Sound A and the beginning of Sound B. Even if I put monitoring code watching Sound A’s SoundEffectInstance.State in the Update() function, I haven’t been able to start Sound B exactly when Sound A finishes so that it’s seamless.

I’d prefer to use SoundEffect because I can load WMA files rather than being stuck with WAVs in XACT.

  • 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. Editorial Team
    Editorial Team
    2026-05-14T19:16:29+00:00Added an answer on May 14, 2026 at 7:16 pm

    A potentially second option. I’d imagine that the gap you’re hearing is probably because the second sound needs to be either loaded into memory, or initialized, or the stream opened (not sure of the internal implementation). But if this is the case, I wonder if you could do something like this:

    1. Load the two sound effects (a and b)
    2. Begin playing sound effect A
    3. immediately begin playing sound effect B
    4. pause sound effect B after one frame
    5. when sound effect A finishes, restart sound effect A

    My assumption is that since sound effect B is already initialized, it may start up quicker, thus lessening the perceived gap. Would love to hear if you get a chance to try this, and whether it worked 🙂

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

Sidebar

Related Questions

I have a few audio files that play for a minute or two in
I am developing an app where i want to play two mp3 files simultaneously
I have a list of short wav files. Two of these files do not
I am doing some custom audio post-processing using audio units. I have two files
i have two function recordsound and post this recorded sound to the server. this
Is there any way to programatically compare two sound files to determine if they
What I have here real simple activity with two buttons. When you press each
I currently have 3 ways to play audio within my app: Using AudioServicesPlaySystemSound for
I have two separate installs of WebSphere. (Actually one is WebSphere Application Server V6.1
I'm trying to play a boing sound when a ball shape hit's any other

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.