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 funk10101, Today, 12:02 AM
            1 response
            11 views
            0 likes
            Last Post NinjaTrader_LuisH  
            Started by GLFX005, Today, 03:23 AM
            1 response
            6 views
            0 likes
            Last Post NinjaTrader_Erick  
            Started by nandhumca, Yesterday, 03:41 PM
            1 response
            13 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Started by The_Sec, Yesterday, 03:37 PM
            1 response
            11 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Started by vecnopus, Today, 06:15 AM
            0 responses
            1 view
            0 likes
            Last Post vecnopus  
            Working...
            X