Code example for SourceDataLine

Methods: getMicrosecondPosition

0
        line.stop();
        line.close();
    } 
 
    public long playedMs() { 
        return line.getMicrosecondPosition();
    } 
 
    public long playedFrames() { 
        return line.getLongFramePosition();
    } 
 
    public int available() { 
        return line.available();
    } 
 
    public int bufferSize() { 
        return line.getBufferSize();
    }