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 elirion, Today, 09:32 PM
        0 responses
        2 views
        0 likes
        Last Post elirion
        by elirion
         
        Started by cre8able, Today, 09:15 PM
        1 response
        5 views
        0 likes
        Last Post bltdavid  
        Started by cummish, Today, 08:43 PM
        0 responses
        7 views
        0 likes
        Last Post cummish
        by cummish
         
        Started by Option Whisperer, Today, 07:58 PM
        4 responses
        19 views
        0 likes
        Last Post Option Whisperer  
        Started by ETFVoyageur, 05-07-2024, 07:05 PM
        13 responses
        87 views
        0 likes
        Last Post ETFVoyageur  
        Working...
        X