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 100737
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T00:38:12+00:00 2026-05-11T00:38:12+00:00

Here is the situation: User looks something up. Alert sound is played because there

  • 0

Here is the situation:
User looks something up.

  • Alert sound is played because there is a notice on the item he looked up
  • User closes the notice – the application continues to retrieve information
  • User is sent a ‘ding’ telling them the information has finished retrieving
  • Application begins sending certain attributes to TextToSpeech
  • The application encounters a notice second, internal notice on the data and sends another alert (texttospeech is paused, then resumed after the alert finishes)
  • Text to speech is finished, another ‘ding’ is played letting the user know that is has read everything

We currently use a queue to process sounds in an orderly fashion to prevent overlapping of sounds. We currently only play a sound from the queue when the SoundAdded event is called. This is a custom event we made to be raised when we add a sound to the queue. Currently, only one sound will be played per calling of the event. We have run into the problem where after certain sounds are played, they will ‘lock’ the queue, preventing further sounds from being process. We got around this by always ‘unlocking’ the queue even if a sound doesn’t play. However, this still leaves us with the problem of the queue getting backed up with sounds to play.

The only method I can think of to solve this is to add a loop to keep trying to play the sound if there is still a sound waiting to be played. Currently, the main thread is handling sounds, I would probably need to move sound handling to a separate thread, but I’m not sure what the best method of handing the sound would be.

So… my question… Is there a good sound library that we can use that includes an event for the end of a sound. Or… what would be the best way to create such a thing?

  • 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-11T00:38:13+00:00Added an answer on May 11, 2026 at 12:38 am

    I don’t know if there’s already a .NET library that would let you do this, but I think you could pretty easily P/Invoke PlaySound from the Windows API and use it to play your sounds. As long as you don’t specify the SND_ASYNC flag, it should block until the sound is done playing at which point you can play the next sound. As you mentioned, you’ll definitely want to do this in a different thread.

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

Sidebar

Related Questions

I have an situation here that looks very like a SELECT N+1 from the
I have a situation here, I want to add user name with a check
Here is the situation, I have registration page that allows user to signup but
Here's the situation: I'm writing a simple AJAX application that performs CRUD functions. When
I have stumbled upon a situation where my application looks for an id that
Here's the situation: I have a predetermined GPS route that the user will run.
Here's the situation, i want to have a user that can enter time on
So here is a complex/retarded situation. I am writing an XSD and there happens
Here the Situation . I am having 2 million records in table . Just
I have a strange situation here. In my android app, I have a layout

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.