Announcement

Collapse
No announcement yet.

Sound Alerts problem

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

  • Sound Alerts problem

    I dont know if im doing something wrong but i can't get the alert to play anything but a ding.

    I’m also trying to add some alert sounds to sound file but they dont show up in sounds when i look under wizard.

    Not a major problem if I could just get it to play something else than ding.wav

  • #2
    Hello jonti,

    One thing to check is what your default path is set to for sounds. Go to Tools --> EFS --> Settings and make sure your Sound Files Root is pointing to the Sounds directory in the eSignal folder. Might look something like this: C:\Program Files\eSignal\Sounds

    The sound files that you are adding need to go to the same directory.

    When you are in the Formula Wizard, the ding.wav file is the default file. Click on the icon to the right of the file name that has three little dots on it.


    You will then see a window that will allow you to select a different file name.


    Select your file and click "Save" and then click "Yes" and you should be set. Let me know if you still have problems.
    Jason K.
    Project Manager
    eSignal - an Interactive Data company

    EFS KnowledgeBase
    JavaScript for EFS Video Series
    EFS Beginner Tutorial Series
    EFS Glossary
    Custom EFS Development Policy

    New User Orientation

    Comment


    • #3
      Tnx but I've done all that..........

      It just dos'nt work

      I only get a "ding" sound

      Take a look at my test, and see if something wrong

      PHP Code:
      //{{EFSWizard_Description
      //
      //    This formula was generated by the Alert Wizard
      //
      //}}EFSWizard_Description 7532


      //{{EFSWizard_Declarations

      var vLastAlert = -1;

      //}}EFSWizard_Declarations 2482


      function preMain() {
         
      /**
          *  This function is called only once, before any of the bars are loaded.
          *  Place any study or EFS configuration commands here.
          */
      //{{EFSWizard_PreMain
          
      setPriceStudy(false);
          
      setStudyTitle("Alarm test");
          
      setStudyMax(1);
          
      setCursorLabelName("?"0);
          
      setCursorLabelName("?"1);
          
      setDefaultBarStyle(PS_SOLID0);
          
      setDefaultBarStyle(PS_SOLID1);
          
      setDefaultBarFgColor(Color.red0);
          
      setDefaultBarFgColor(Color.darkgrey1);
          
      setDefaultBarThickness(10);
          
      setDefaultBarThickness(11);
          
      setPlotType(PLOTTYPE_LINE0);
          
      setPlotType(PLOTTYPE_LINE1);
      //}}EFSWizard_PreMain 55910

      }

      function 
      main() {
         
      /**
          *  The main() function is called once per bar on all previous bars, once per
          *  each incoming completed bar, and if you don't have 'setComputeOnClose(true)'
          *  in your preMain(), it is also called on every tick.
          */

      //{{EFSWizard_Expressions
          //{{EFSWizard_Expression_1
              
      if (
                  
      close() > open()
              ) 
      onAction1()
          
      //}}EFSWizard_Expression_1 5874
          
          //{{EFSWizard_Expression_2
              
      else if (
                  
      close() < open()
              ) 
      onAction2();
          
      //}}EFSWizard_Expression_2 7865
          
      //}}EFSWizard_Expressions 34862


      //{{EFSWizard_Return
          
      return new Array(
              
      null,
              
      null
          
      );
      //}}EFSWizard_Return 6563

      }

      function 
      postMain() {
         
      /**
          *  The postMain() function is called only once, when the EFS is no longer used for
          *  the current symbol (ie, symbol change, chart closing, or application shutdown).
          */
      }

      //{{EFSWizard_Actions
          //{{EFSWizard_Action_1
          
      function onAction1() {
              if (
      vLastAlert != 1Alert.playSound("C:\Programfiler\eSignal\Sounds\Ding2.wav");
              
      vLastAlert 1;
          }
          
      //}}EFSWizard_Action_1 16973
          
          //{{EFSWizard_Action_2
          
      function onAction2() {
              if (
      vLastAlert != 2Alert.playSound("C:\Programfiler\eSignal\Sounds\Ding2.wav");
              
      vLastAlert 2;
          }
          
      //}}EFSWizard_Action_2 16573
          
      //}}EFSWizard_Actions 51728 

      Comment


      • #4
        Sorry
        This is the right one

        PHP Code:
        //{{EFSWizard_Actions
            //{{EFSWizard_Action_1
            
        function onAction1() {
                if (
        vLastAlert != 1Alert.playSound("C:\\Programfiler\\eSignal\\Sounds\\Ding2.wav");
                
        vLastAlert 1;
            }
            
        //}}EFSWizard_Action_1 17909
            
            //{{EFSWizard_Action_2
            
        function onAction2() {
                if (
        vLastAlert != 2Alert.playSound("C:\\Programfiler\\eSignal\\Sounds\\Ding2.wav");
                
        vLastAlert 2

        Comment


        • #5
          "C:\Programfiler\eSignal\Sounds\Ding2.wav" looks wrong to me... namely "Programfiler". I believe this should be "Program Files" unless you or your OS uses a different file structure then the standard US Windows OS.
          Regards,
          Jay F.
          Product Manager
          _____________________________________
          Have a suggestion to improve our products?
          Click Support --> Request a Feature in eSignal 11

          Comment


          • #6
            Hello Jonti,

            Your last code snippet shows Ding2.wav. Were you able to change this to any other sound listed in \eSignal\Sounds? Try the attached, this is working on my end. Let me know if you hear the bullet.wav and chord.wav sounds.
            Attached Files
            Jason K.
            Project Manager
            eSignal - an Interactive Data company

            EFS KnowledgeBase
            JavaScript for EFS Video Series
            EFS Beginner Tutorial Series
            EFS Glossary
            Custom EFS Development Policy

            New User Orientation

            Comment


            • #7
              Hello Jason

              Your EFS does not work on my Esignal, and yes Bullet.Wav is located in my C:\Programfiler\eSignal\Sounds..................

              My path is correct
              C:\Programfiler\eSignal\Sounds\Ding2.wav

              My pc is norwegian, and Programfiler = Program Files.

              But it stil dos'nt work..............

              Comment


              • #8
                Hello jonti,

                The last formula I gave you would need the path info to be changed to match your path to the sounds file.

                Let's try a different test. The attached formula is not path specific. It uses the path that is set in your Sound Files Root setting in Tools --> EFS --> Settings. You should hear the Bullet.wav at the instance of each new bar. Let us know what happens.
                Attached Files
                Jason K.
                Project Manager
                eSignal - an Interactive Data company

                EFS KnowledgeBase
                JavaScript for EFS Video Series
                EFS Beginner Tutorial Series
                EFS Glossary
                Custom EFS Development Policy

                New User Orientation

                Comment


                • #9
                  wow

                  That worked just excellent!!!!!!!!!!!!!!!!!!!!!

                  What did you do?

                  Deleted the path?

                  Comment


                  • #10
                    Hello jonti,

                    When you create a custom EFS (not using the wizard), you don't have to specify the path. The formula knows to look to what ever folder is specified in your EFS settings. I just wanted to make sure that your setup can actually play the sounds. The problem has to be related to the path info or the file selected through the wizard. You should be able to open the jonti.efs in my previous message in the wizard and re-select sound files to point them to the correct path on your PC.

                    Alternatively, you could open the formula in an EFS editor change the Alert.playSound() lines to show: Alert.playSound("Bullet.wav") etc. Save it and try that. Note, once you make a custom edit to a formula wizard generated EFS, you won't be able to open it in the wizard.
                    Jason K.
                    Project Manager
                    eSignal - an Interactive Data company

                    EFS KnowledgeBase
                    JavaScript for EFS Video Series
                    EFS Beginner Tutorial Series
                    EFS Glossary
                    Custom EFS Development Policy

                    New User Orientation

                    Comment


                    • #11
                      Tnx

                      I changed it in the wizars. Now it works just fine, and I know how to do It.

                      Tnx a lot.



                      But is this a Wizard bug?


                      Comment

                      Working...
                      X