private static void init() {
    	try {
	        // 44,100 samples per second, 16-bit audio, mono, signed PCM, little Endian
	        AudioFormat format = new AudioFormat((float) SAMPLE_RATE, BITS_PER_SAMPLE, 1, true, false);
	        DataLine.Info info = new DataLine.Info(SourceDataLine.class, format);
	
	        line = (SourceDataLine) AudioSystem.getLine(info);
	        line.open(format, SAMPLE_BUFFER_SIZE * BYTES_PER_SAMPLE);
	        
	    } catch (Exception e) {
	        System.out.println(e.getMessage());
	        System.exit(1);
	    }
	
	    // no sound gets made before this call
	    line.start();
    }