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 cmoran13, 04-16-2026, 01:02 PM
        0 responses
        42 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        25 views
        0 likes
        Last Post PaulMohn  
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        162 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        98 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        157 views
        2 likes
        Last Post CaptainJack  
        Working...
        X