Announcement

Collapse
No announcement yet.

Alert.playSound not working

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

  • Alert.playSound not working

    I'm stumped. Please advise what I'm doing wrong. My EFS snippet code follows:

    function preMain() {
    setPriceStudy(true);
    Alert.playSound("C:\WINDOWS\Media\tada.wav");
    debugPrint("Premain fired");
    }

    I expect to hear the "tada.wav" file, however, I only hear the default sound. I've tried other wav files all with the same resulting sound of the default sound only. I've also tried different path names such as:

    Alert.playSound("c:\windows\media\tada.wav")
    Alert.playSound("tada.wav")
    Alert.playSound("C:\Program Files\eSignal\Sounds\doorbell.wav");

    No luck. I've checked to be sure the tada.wav is in the correct path.

    What am I doing wrong?
    Last edited by doug1; 03-18-2003, 08:31 AM.

  • #2
    Doug

    try going into Control Panel, Sounds and checking if the lfile you refer to makes the expected sound from there. Could be the names of the files are wrong. Maybe tada plays the default sound?

    Comment


    • #3
      Yes, I've check the file to be sure it plays the expected sound. I go to the file, click on it to play it and the wav files play correctly. I've edited my post to include a few other wav files I've tried without success.

      Comment


      • #4
        doug1,

        There was a bug in eSignal 7.2 build 544 where Alert.playSound() will only work with the eSignal sound root directory, however this has been corrected in the latest beta (build 566). I would suggest either copying the wav file to the eSignal sound directory, or upgrading to the beta and use the full path as you have been using.
        Regards,
        Jay F.
        Product Manager
        _____________________________________
        Have a suggestion to improve our products?
        Click Support --> Request a Feature in eSignal 11

        Comment


        • #5
          Alert.playSound("C:\\Program Files\\eSignal\\Sounds\\Ding.wav")

          is the correct format I think

          Comment


          • #6
            I think you've solved the problem Jay. I changed the code:

            FROM:
            Alert.playSound("C:\Program Files\eSignal\Sounds\doorbell.wav");

            TO:
            Alert.playSound("doorbell.wav");

            and it works with build 544, and so I am downloading the new build you suggested.

            You guys are FASSSTTTTT in responding, outstanding!!

            Comment


            • #7
              Bad news, the problem persists. I downloaded beta 7.3 build 566 as suggested. Installed it, confirmed that is the version running. However, the sound will not play with any path name. The suggestion to use "\\" rather than "\" DOES work. The following only plays the default sound:

              FAILS:
              Alert.playSound("C:\Program Files\eSignal\Sounds\doorbell.wav");

              WORKS:
              Alert.playSound("doorbell.wav");

              WORKS:
              Alert.playSound("C:\\Program Files\\eSignal\\Sounds\\doorbell.wav");

              WORKS:
              Alert.playSound("C:\\Windows\\Media\\tada.wav");

              So is the use of "\\" correct or a work around? Can I count on the "\\" working in future versions?
              Last edited by doug1; 03-18-2003, 08:52 AM.

              Comment


              • #8
                Re: Reply to post 'Alert.playSound not working'

                Doug
                Have you tried changing the Sound Files Root in Tools->EFS Settings and
                redirecting to the folder you want?
                Alex
                Last edited by ACM; 03-18-2003, 08:55 AM.

                Comment


                • #9
                  "Have you tried changing the Sound Files Root in Tools->EFS Settings and
                  redirecting to the folder you want?
                  Alex"

                  Yes, that works also. So the solution to either use no path name and use the sound in the default EFS sound directory, or use a path name with the "\\" format as shown below.

                  Alert.playSound("C:\\Windows\\Media\\tada.wav");

                  But do not use the following format because it does not work:

                  Alert.playSound("C:\Windows\Media\tada.wav");

                  Comment


                  • #10
                    WORKS:

                    Alert.playSound("C:\\Program Files\\eSignal\\Sounds\\doorbell.wav");


                    Another victory for the Formula WIzard

                    Comment

                    Working...
                    X