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 Hwop38, 05-04-2026, 07:02 PM
        0 responses
        173 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        328 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        252 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        354 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        181 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Working...
        X