home *** CD-ROM | disk | FTP | other *** search
/ Internet Directory for Kids & Parents / InternetDirectory.iso / internet / att / nnsetup / ns3230e / disk2 / data.2 / Program / plugins / NPAUDIO.ZIP / SoundPlayer.class (.txt)
Encoding:
Java Class File  |  1996-08-09  |  1.0 KB  |  64 lines

  1. import netscape.plugin.Plugin;
  2.  
  3. public class SoundPlayer extends Plugin {
  4.    private native boolean play_bool(boolean var1);
  5.  
  6.    private native boolean play_count(int var1);
  7.  
  8.    private native boolean play_bool_url(boolean var1, String var2);
  9.  
  10.    private native boolean play_count_url(int var1, String var2);
  11.  
  12.    public boolean play() {
  13.       return this.play_bool(false);
  14.    }
  15.  
  16.    public boolean play(boolean var1) {
  17.       return this.play_bool(var1);
  18.    }
  19.  
  20.    public boolean play(int var1) {
  21.       return this.play_count(var1);
  22.    }
  23.  
  24.    public boolean play(boolean var1, String var2) {
  25.       return this.play_bool_url(var1, var2);
  26.    }
  27.  
  28.    public boolean play(int var1, String var2) {
  29.       return this.play_count_url(var1, var2);
  30.    }
  31.  
  32.    public native boolean stop();
  33.  
  34.    public native boolean pause();
  35.  
  36.    public native boolean setvol(int var1);
  37.  
  38.    public native boolean start_time(int var1);
  39.  
  40.    public native boolean start_at_beginning();
  41.  
  42.    public native boolean end_time(int var1);
  43.  
  44.    public native boolean stop_at_end();
  45.  
  46.    public native boolean fade_to(int var1);
  47.  
  48.    public native boolean fade_from_to(int var1, int var2);
  49.  
  50.    public native boolean IsReady();
  51.  
  52.    public native boolean IsPlaying();
  53.  
  54.    public native boolean IsPaused();
  55.  
  56.    public native int GetVolume();
  57.  
  58.    public native void StopAll();
  59.  
  60.    public void stop_all() {
  61.       this.StopAll();
  62.    }
  63. }
  64.