Code example for SourceDataLine

Methods: close

0
	/** 
	 * Closes the audio device. 
	 */ 
	public void close() {	 
		if(sourceDataLine != null) {
			sourceDataLine.close();
			sourceDataLine = null;
			opened = false;
		} 
	} 
	 
	/** 
	 * Sets the mute state of the audio device. 
	 * @param mute the mute state to set. 
	 */	 
	public void setMute(boolean mute) {
		this.mute = mute;
		if(sourceDataLine != null) {
			BooleanControl muteCtrl = (BooleanControl)sourceDataLine.getControl(BooleanControl.Type.MUTE);			
			muteCtrl.setValue(mute);
Connect your IDE to all the code out there  Get Codota for Java