Code example for SourceDataLine

Methods: stop

0
	 * Pauses the playback of the audio stream. 
	 */ 
	public void pause() { 
		playing = false;
		if(sourceDataLine != null) {
			sourceDataLine.stop();
		} 
	} 
	 
	/** 
	 * Closes the audio device. 
	 */ 
	public void close() {	 
		if(sourceDataLine != null) {
			sourceDataLine.close();
			sourceDataLine = null;
			opened = false;
		} 
	}