Help to find a package

Discussion in 'Java' started by Jenny, Sep 2, 2004.

  1. Jenny

    Jenny Guest

    HI,

    In the code, it used a package sun.audio. Could you help to find it?

    Thank a lot.


    import java.io.*;
    import sun.audio.*;
    class TestAudio
    {
    public static void main(String args[])
    {
    FileInputStream fis_sound;
    int i;
    try
    {
    fis_sound = new FileInputStream("ladieu.wav");
    System.out.println("Playing sound...");
    AudioPlayer.player.start(fis_sound);
    while (true)
    ;
    }
    catch (Exception e){
    System.out.println(e);}
    }
    }
     
    Jenny, Sep 2, 2004
    #1
    1. Advertising

  2. On 1 Sep 2004 16:51:00 -0700, Jenny wrote:

    > In the code, it used a package sun.audio. Could you help to find it?


    rt.jar!sun/audio/ ;-)

    Java arrives in Zip files. The sun.audio package
    resides in the sun/audio/ directory of the Java rt.jar.

    What I wrote above is how it might appear as
    part of an URL to the sun.audio package..
    the rt.jar tells the file name, followed !
    to mean a Zip or Jar archive..

    Or is it the JavaDocs you mean?
    There are none.

    Sun reserves the right to change any of
    those classes at any time. They say *not*
    to use them directly, but to use the documented
    methods whaich call them instead.

    Does that help?

    --
    Andrew Thompson
    http://www.PhySci.org/ Open-source software suite
    http://www.PhySci.org/codes/ Web & IT Help
    http://www.1point1C.org/ Science & Technology
     
    Andrew Thompson, Sep 2, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Wybo Dekker
    Replies:
    1
    Views:
    379
    Yukihiro Matsumoto
    Nov 15, 2005
  2. Randy Kramer
    Replies:
    11
    Views:
    298
    Randy Kramer
    Mar 27, 2006
  3. Krishna Chaitanya
    Replies:
    5
    Views:
    178
    Gunnar Hjalmarsson
    Apr 3, 2009
  4. vdvorkin
    Replies:
    0
    Views:
    424
    vdvorkin
    Feb 10, 2011
  5. vdvorkin
    Replies:
    3
    Views:
    832
    vdvorkin
    Feb 14, 2011
Loading...

Share This Page