Code example for SourceDataLine

Methods: drain

0
 
	protected void flushImpl() 
	{ 
		if (source!=null)
		{ 
			source.drain();
		} 
	} 
 
	public int getPosition() 
	{ 
		int pos = 0;
		if (source!=null)
		{ 
			pos = (int)(source.getMicrosecondPosition()/1000);
		} 
		return pos;
	} 
 
	/**