i tried testing on record sound continuesly but fail . can this be done with player and recordcontrol?
capturePlayer.start();
int buf = 0;
while (!quit) {
recordControl.startRecord();
Thread.sleep(1000);
synchronized (bos[buf]) {
recordControl.stopRecord();
recordControl.commit();
System.out.println("recording " + buf + " size=" + bos[buf].size());
bos[buf].notify();
buf = (buf * -1) + 1;
recordControl.setRecordStream(bos[buf]);
}
}

Reply With Quote

