Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

sound alert

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

    sound alert

    Don't know if this expected behavior but thought I would mention it.

    When importing indicators from 6.5 to 7, if you have a sound alert using

    PlaySound(@"C:\Program Files\NinjaTrader 6.5\sounds\Alert1.wav");

    you better change it to

    PlaySound(@"C:\Program Files\NinjaTrader 7\sounds\Alert1.wav");

    I would have expected that it would not matter where the wav file is located, however NT7 only recognizes the path with NinjaTrader 7.

    hmmmm?

    #2
    Velocity,

    I don't believe you need the NinjaTrader path in there at all.

    It defaults to the C:\Program Files\NinjaTrader x\sounds\ directory

    I always just use PlaySound("Alert1.wav"); that will use the proper directory.
    mrlogik
    NinjaTrader Ecosystem Vendor - Purelogik Trading

    Comment


      #3
      Thanks for the tip.

      Comment


        #4
        I use indicators with customized sound alerts. So I copied the .wav files from the NT 6.5. to the NT 7 sounds directory.

        When using the indicators with NT 7, I do not get any sound alerts, but the indicator throws an exception, as can be seen in the trace file:

        Cbi.AlertCollection.ProcessEventArgsInThreadContex t, exception caught: The Sound-API only supports PCM wave files.

        What is this again, and why have specs changed with respect to NT 6.5.?

        Comment


          #5
          Need to convert WAV files to WAV/PCM

          For those, who have the same problem: The Windows Audio Recorder allows to convert all types of WAV files to WAV/PCM files. After conversion the WAV files used for NT 6.5. can also be used for NT 7!
          Last edited by Harry; 02-23-2010, 05:29 AM.

          Comment


            #6
            Harry, thanks for figuring that out.

            Comment


              #7
              Can the NT7 Sound API be modified in a way that it reads the same .WAV files as NT 6.5.? There might quite a number of users with their soundfiles no longer working when switching form NT 6.5 to NT 7.

              Just in case that they do not find this thread.

              Comment


                #8
                Unfortunately not.

                Comment


                  #9
                  Originally posted by Harry View Post
                  For those, who have the same problem: The Windows Audio Recorder allows to convert all types of WAV files to WAV/PCM files. After conversion the WAV files used for NT 6.5. can also be used for NT 7!
                  Hmm ... I just checlked. I would not find a reference for "Windows Audio Recorder" on my Win7 64bit machine. There is a "Sound recorder" which would allow to record but not to convert existing sound files. Am I missing something?

                  Thanks

                  Comment


                    #10
                    Windows XP Audio Recorder works

                    Hi Dierk,

                    this another present from Microsoft to make their customers happy.

                    Windows XP Professional: Audiorecorder allows to convert audio files. The audiorecorder will save any open file in 12 different file formats, each with a large variety of further options.

                    Windows Vista: Audiorecorder cannot convert sound files.

                    I do not own a Win7 64bit machine, but I imagine that Microsoft has maintained this new feature of their audiorecorder.

                    Originally posted by NinjaTrader_Dierk View Post
                    Hmm ... I just checlked. I would not find a reference for "Windows Audio Recorder" on my Win7 64bit machine. There is a "Sound recorder" which would allow to record but not to convert existing sound files. Am I missing something?

                    Thanks
                    Attached Files

                    Comment


                      #11
                      Thanks for your feedback. Where exactly in XP would I find that audio recorder?

                      Comment


                        #12
                        Use a free audio conversion tool

                        Basically you would need to convert WAV/MPEG to WAV/PCM files. If Windows Vista and Windows 7 do not come with a conversion tool, you could download some freeware. I just tested a tool called free audio converter, and it was easy to convert my WAV/MPEG files. It just annoyed me a little, because everytime I used it, it wanted to install a toolbar....

                        Comment


                          #13
                          Excellent. Thanks

                          >> called free audio converter
                          would you have a link?

                          Comment


                            #14
                            Programme -> Zubehör -> Unterhaltungsmedien -> Audiorecorder (sorry my Windows is not in English)

                            Originally posted by NinjaTrader_Dierk View Post
                            Thanks for your feedback. Where exactly in XP would I find that audio recorder?

                            Comment


                              #15
                              I am sure there are other tools as well. This was just the first one I stumbled upon...

                              Free Audio Converter: best quality MP3 converter based on INSANE and EXTREME MP3 LAME presets, lossless audio converter, all popular audio file formats.


                              Originally posted by NinjaTrader_Dierk View Post
                              Excellent. Thanks

                              >> called free audio converter
                              would you have a link?

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by algospoke, Today, 06:40 PM
                              0 responses
                              2 views
                              0 likes
                              Last Post algospoke  
                              Started by maybeimnotrader, Today, 05:46 PM
                              0 responses
                              6 views
                              0 likes
                              Last Post maybeimnotrader  
                              Started by quantismo, Today, 05:13 PM
                              0 responses
                              6 views
                              0 likes
                              Last Post quantismo  
                              Started by AttiM, 02-14-2024, 05:20 PM
                              8 responses
                              167 views
                              0 likes
                              Last Post jeronymite  
                              Started by cre8able, Today, 04:22 PM
                              0 responses
                              8 views
                              0 likes
                              Last Post cre8able  
                              Working...
                              X