Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Simlutaneous PlaySound issue.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Simlutaneous PlaySound issue.

    I'm using PlaySound on several instruments on not time-based bars. During big movements there are conditions, when my indicators are playing sounds simultaneously, interrupting each other. If I remember properly, at least on Windows API level, there is a way to queue sound files to be played and to avoid simultaneous playing. So probably it exists under .NET either.
    Another, worse solution, would be to provide a flag to discard a sound when the media player is busy currently.
    Please transfer this issue to your developers. Thanks.

    #2
    Thanks for the post xTrader1. There's unfortunately no queuing option available for the PlaySound call - I will add this feedback to our feedback tracking lists for potential consideration in a future release.

    Comment


      #3
      Also hoping for the ability to queue sounds files here guys..

      Has anyone developed a solution to this they might be willing to share?

      Also, whats the NT8 status on this one?

      Cheers.

      Comment


        #4
        Hello marty087,

        Thank you for your post.

        There is no option for queuing the sounds in NinjaTrader 7 or 8. I will forward your request to development.

        Comment


          #5
          This request has been assigned the internal tracking ID # SFT-1407.

          Comment


            #6
            xtrader1.

            I stopped using "PlaySound" for that very reason. It is limited because it has a generic stringID so to speak yet the stringID must be unique if every soundfile is to be played even if it overlaps with another soundfile.

            I solved it by using Alerts instead of PlaySound with a userdefinable ID which allows me to give it a different name for every instance in which I use the indicator. I also made the re-arm time userdefinable which comes in handy.

            Alert(string id, Priority priority, string message, string soundLocation, int rearmSeconds, Color backColor, Color foreColor). See attached.

            Has been working beautifully for me ever since (2 years).

            sandman
            Attached Files

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            571 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            331 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            101 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            549 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            549 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X