Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
    BertrandNinjaTrader Customer Service

    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 ezrollin, Today, 09:01 PM
            1 response
            15 views
            0 likes
            Last Post ezrollin  
            Started by FutTrader9000, Today, 06:20 PM
            0 responses
            29 views
            0 likes
            Last Post FutTrader9000  
            Started by junkone, Today, 05:48 PM
            0 responses
            23 views
            0 likes
            Last Post junkone
            by junkone
             
            Started by Futurestrader00, Today, 05:10 PM
            1 response
            29 views
            0 likes
            Last Post NinjaTrader_ShawnB  
            Started by Gerik, 03-08-2021, 01:25 AM
            5 responses
            49 views
            0 likes
            Last Post NinjaTrader_ShawnB  
            Working...
            X