Logo Search packages:      
Sourcecode: libjlayer-java version File versions  Download package

void javazoom::jl::player::PlayerApplet::start (  )  [inline]

Starts this applet. An input stream and audio device are created and passed to the play() method.

Definition at line 189 of file PlayerApplet.java.

References getAudioDevice(), getAudioStream(), play(), and javazoom::jl::decoder::JavaLayerException::printStackTrace().

      {
            String name = getAudioFileName();
            try
            {                 
                  InputStream in = getAudioStream();
                  AudioDevice dev = getAudioDevice();
                  play(in, dev);
            }
            catch (JavaLayerException ex)
            {
                  synchronized (System.err)
                  {
                        System.err.println("Unable to play "+name);
                        ex.printStackTrace(System.err);
                  }
            }
      }     


Generated by  Doxygen 1.6.0   Back to index