投稿日時:2010/04/25 Javaを使用して入出力デバイスの動作を作成したので覚書 Javaはあまり慣れていないのでプログラムは歪です まずは音声録音です 音声録音クラス public class Recorder extends Thread { private static final int BITS = 16; private static final int HZ = 8000; private static final int MONO = 1; // リニアPCM 16bit 8000Hz x 1秒 private byte[] voice = new byte[ HZ * BITS / 8 * MONO ]; private TargetDataLine target; private AudioInputStream stream; public boolean g