Announcement

Collapse
No announcement yet.

playSound

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

  • playSound

    Am I doing something wrong, or is this a bug? I'm not aware of any adjustment that can be made to any version of Windows that could cause this kind of behavior.

    But I'm willing to learn.

    Regards,
    LB

    /*/\/\/\/\/\/\/\/\/\/\/\*/
    function preMain(){
    debugClear();
    debugPrintln("preMain");
    //
    //
    //
    Alert.playSound("new.wav");
    //
    // this call works under both WXP and W2000
    //
    }
    /*/\/\/\/\/\/\/\/\/\/\/\*/
    /*/\/\/\/\/\/\/\/\/\/\/\*/
    function main(){
    debugPrintln("main");
    //
    //
    //
    Alert.playSound("new.wav");
    //
    // this call works only under W2000
    // (same for all calls to playSound not in preMain)
    //
    }
    /*/\/\/\/\/\/\/\/\/\/\/\*/
    /*/\/\/\/\ end \/\/\/\/\*/
    /*/\/\/\/\/\/\/\/\/\/\/\*/

  • #2
    Hello LB,

    I'm running build 607 on XP and the following code works fine for me. Both the preMain() and main() calls to Alert.playSound() are working on my end. Try changing the file to "train.wav" and make sure your sound file root is set /eSignal/Sounds under Tools --> EFS --> Settings.

    PHP Code:
    function preMain(){
        
    debugClear();
        
    debugPrintln("preMain");
        
    Alert.playSound("train.wav");
    }

    function 
    main(){
        
    debugPrintln("main");
        
    Alert.playSound("train.wav");

    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
      Thanks Jason,

      I didn't think my code was the problem. But if you are able to run the same code on an XP machine and get it to work, a bug in eSignal is more or less ruled out as well.

      So, what is in fact going on? Something in XP? Not likely.

      You say you are running build 607 (of v7.3?) I just did another download and I'm still getting build 588.

      Q1) How do I get 607?

      Q2) Does anyone know of any patches to XP that might be involved in this sort of problem?

      Q3) Is anyone else able to confirm whether or not playSound works **outside of the preMain function** on their XP machine?

      The main thing that is bugging me about this is - how can the call to playSound work once (or twice or more, from preMain), and then stop working (from main or from other functions)? If anyone has an idea, I'm willing to consider just about anything.

      Regards,
      LB

      Comment


      • #4
        LB

        Q1) How do I get 607?

        Click here

        Alex

        Comment


        • #5
          Thanks Alex,

          I installed v7.4 on two of my machines, and there was of course no change in the way they perormed relative to the playSound function.

          The W2000 system still works fine everywhere, and the WXP system still only works from the preMain function.

          Guess I'll have to write a dll to do noises ...

          LB

          Comment


          • #6
            For anyone that might have been having the same problem ...

            I'm up to v7.7 on one of my computers, and decided to see if this problem still existed.

            It appear to have been fixed. I no longer need to use my DLL to make sounds on my XP machines.

            Comment

            Working...
            X