Code example for SourceDataLine

Methods: stop

0
        return play;
    } 
 
    public void pause() 
    { 
        line.stop();
        play = false;
    } 
 
    public void loop(int n)
    { 
        loop = true;
        numLoops = n;
        play = true;
        setMillisecondPosition( loopBegin );
        line.start();
        iothread.interrupt();
    } 
 
    public void open()