Code example for SourceDataLine

Methods: start

0
        } 
    } 
 
    public void play() 
    { 
        line.start();
        loop = false;
        numLoops = 0;
        play = true;
        iothread.interrupt();
    } 
 
    public boolean isPlaying() 
    { 
        return play;
    } 
 
    public void pause() 
    { 
        line.stop();