Announcement

Collapse
No announcement yet.

Alert.playSound() not working...

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

  • Alert.playSound() not working...

    Can somebody suggest, please, where is the problem?

    function main(){
    Alert.playSound("C:\\New.wav");
    }

    In market time (i.e. when ticks are coming), plays only a beep on computer speaker, after market hours (no ticks coming) does not play at all...

    Are there some settings I need to check in order for eSignal to play sounds or what? The sound is in shown location and plays well when directly accessed through file system.

    Thanks!

  • #2
    Hello SmoothOperator,

    Please review the info in this thread from earlier today.
    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
      Alert.playSound()

      Thanks for the link but this still does not address my question.

      You referred me to a msg which talks about build 607. But this is beta. I don't want to install beta. I want to know how to make programmable alerts work in 7.3, because they were documented for 7.3.

      Are you saying that programmable alerts are not usable in current release (which is 7.3) at all, despite the fact that they are documented in EFS Help library?

      Comment


      • #4
        SmoothOperator
        The fact that in that message reference is made to build 607 is marginal.
        The reason Jay pointed you to that message has to do with what Jason suggests regarding the sound file root path which you may want to check. I do not believe Jay ever said that programmable alerts are not usable in current release.
        Alex

        Comment


        • #5
          Re: Alert.playSound()

          Hello SmoothOperator,

          Which version of Windows are you using?

          What happens when you run my little program or Jason's?

          Regards,
          LB

          Comment


          • #6
            I am using Win2000 sp2.
            The sound root path was fine (i.e. it pointed to the eSignal sound folder with all sounds intact there). As you can see from my script, I tried to play from C:\ as well. Again, no result.

            Something seemed working at some level, however, which was evidenced by PC speaker sounding a beep. When I intentionally referenced a missing sound file, the beep didn't sound.

            As far as trying those scripts -- what's the point? I simplified my test formula to the bare bones, and if the 7.3 EFS environment functioned as it is documented, the sound should have played. Besides, I installed today 7.4 RC, even though I didn't really want to, since it is not a release version yet, so it is impossible for me to try these scripts in the old environment (well, I could install 7.3 back again, but why bother). I needed working sound alerts, as well some other functionality (a working File.exists() function, for example, which works fine in 7.4).

            Alert.playSound() works allright in 7.4...

            Thanks for your inputs, anyway...

            PS. It would still interest me to find out why it wasn't working in 7.3, but it's much less important now...

            Comment


            • #7
              Unfortunately, v7.4 did NOT solve my problem. (Didn't really expect it to ... )

              LB

              Comment

              Working...
              X