Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Add a PlaySound() compilation error

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

    Add a PlaySound() compilation error

    The PlaySound() method requires that the named .wav file to play must exist in the C:\Program Files\NinjaTrader 6\sounds folder.

    Suggestion: Add a compiler error if a PlaySound method's .wav file does not exist in the required folder.

    Question: When upgrading to a new NT release, are user .wav files copied to the new \sounds folder? If not then please do.

    #2
    Thanks for suggetion, will add it to our list for future consideration.
    RayNinjaTrader Customer Service

    Comment


      #3
      Jim

      You can use your own directory for sounds
      Prefix it with @ and use dbl-quotes as shown below

      PlaySound(@"C:\data\sounds\tink1.wav");


      It's not documented in 'text' in the help , but the example shows its usage.

      Comment


        #4
        Thanks for the information.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        577 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        334 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
        553 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        551 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X