}
public void open(AudioFormat format, int bufferSize)
throws LineUnavailableException {
LineEvent event = null;
if (bufferSize < format.getFrameSize() * 32)
bufferSize = format.getFrameSize() * 32;
synchronized (control_mutex) {
if (!isOpen()) {
if (!mixer.isOpen()) {
mixer.open();
mixer.implicitOpen = true;
}
event = new LineEvent(this, LineEvent.Type.OPEN, 0);
this.bufferSize = bufferSize - bufferSize
% format.getFrameSize();
this.format = format;
this.framesize = format.getFrameSize();