• 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 harjinderjit, Today, 06:41 PM
            0 responses
            18 views
            0 likes
            Last Post harjinderjit  
            Started by Herrwolf1, Today, 09:37 PM
            1 response
            6 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by tjendra, Today, 11:13 AM
            2 responses
            12 views
            0 likes
            Last Post tjendra
            by tjendra
             
            Started by rgoudie, Today, 08:11 PM
            1 response
            8 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by simonerg, Today, 06:00 PM
            5 responses
            24 views
            0 likes
            Last Post simonerg  
            Working...
            X