• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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.
    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.
        Patrick H.NinjaTrader Customer Service

        Comment


          #5
          This request has been assigned the internal tracking ID # SFT-1407.
          Patrick H.NinjaTrader Customer Service

          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 brokerbombero, Today, 09:42 AM
            2 responses
            22 views
            0 likes
            Last Post brokerbombero  
            Started by 12VMan, Today, 09:29 AM
            1 response
            12 views
            0 likes
            Last Post NinjaTrader_PatrickG  
            Started by PBreen, Today, 08:41 AM
            1 response
            6 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Started by U0000999, Today, 05:54 AM
            2 responses
            20 views
            0 likes
            Last Post NinjaTrader_ChrisL  
            Started by Leeroy_Jenkins, 08-16-2019, 08:35 AM
            7 responses
            111 views
            1 like
            Last Post guidoisot  
            Working...
            X