133134135136137138139140141142143
// write to the output sourceDataLine.write(bOutputBuffer, 0, bOutputBuffer.length); } // release all audio resources targetDataLine.drain(); targetDataLine.close(); sourceDataLine.drain(); sourceDataLine.close(); } }