Code example for SourceDataLine

Methods: open

0
		buffer = new byte[getSampleSizeInBytes()];
		 
		try 
		{ 
			line = (SourceDataLine)AudioSystem.getLine(INFO);
			line.open(AF, lineBufferSize);	
		} 
		catch (Exception e) 
		{ 
			System.out.println(e);
		} 
	} 
	 
	//****************************************************************************** 
	// END CONSTRUCTORS 
	// BEGIN SOUND METHODS 
	//****************************************************************************** 
	 
	public void play(double frequency)
	{ 
Connect your IDE to all the code out there  Get Codota for Java