static Pair javaSound_bothLines(S mixerName, AudioFormat format, int internalBufferSize) ctex { Mixer mixer = mixerName == null ? null : AudioSystem.getMixer(javaSound_getMixerInfo(mixerName)); DataLine.Info targetInfo = new DataLine.Info(TargetDataLine.class, format, internalBufferSize); DataLine.Info sourceInfo = new DataLine.Info(SourceDataLine.class, format, internalBufferSize); TargetDataLine in; SourceDataLine out; if (mixer != null) { in = (TargetDataLine) mixer.getLine(targetInfo); out = (SourceDataLine) mixer.getLine(sourceInfo); } else { in = (TargetDataLine) AudioSystem.getLine(targetInfo); out = (SourceDataLine) AudioSystem.getLine(sourceInfo); } in.open(format, internalBufferSize); out.open(format, internalBufferSize); ret pair(in, out); }