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 SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        96 views
        0 likes
        Last Post SalmaTrader  
        Started by CarlTrading, 07-05-2026, 01:16 PM
        0 responses
        51 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 06-17-2026, 10:32 AM
        0 responses
        23 views
        0 likes
        Last Post CaptainJack  
        Started by kinfxhk, 06-17-2026, 04:15 AM
        0 responses
        34 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 06-17-2026, 04:06 AM
        0 responses
        37 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X