Java code now takes args: bufferSize sampleRate ins outs.