public void setSampleRate(int sr) {
		sampleRate = sr;

		soundLine.flush();
		soundLine.close();

		soundLine = initSoundHardware();

		channel1.setSampleRate(sr);
		channel2.setSampleRate(sr);
		channel3.setSampleRate(sr);
		channel4.setSampleRate(sr);
	}