[312] in java-interest

home help back first fref pref prev next nref lref last post

No subject found in mail header

daemon@ATHENA.MIT.EDU (avramov@bimacs.cs.biu.ac.il)
Wed Jun 14 13:29:06 1995

Date: Mon, 12 Jun 1995 15:32:18 +0300
From: avramov@bimacs.cs.biu.ac.il
To: java-interest@java.sun.com

 Hello, there !
Whould somebody be SO kind to answer my questions:
1.I try to play some "au" file from my applet in this way:
    private       InputStream music;
    public void init() {
        resize(50, 50);
        music=getAudioStream(new URL(documentURL,"goofed.au"));
      // ...
    }
    public void mouseUp(int x, int y)
    {
      if (...)
      {
         //...
         startPlaying(music);                   //1-st version
         play("KLF_All_You_Need_Is_Love.au");   //2-nd version
      }
      else
      {
         //...
         stopPlaying("KLF_All_You_Need_Is_Love.au");
      }
      //...
    }

in the status line
hotjava writes "0% complete" then 
the line is erased and finally
nothing is played.
            WHY ???
2. Is there any way to play sound tone in java
  giving as parameter some frequency and latency ?
                Thanx in advance
                   Alex
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post