Displaying 1 result from an estimated 1 matches for "recorderlistener".
2007 Aug 21
0
Need help on making speex AEC to work
...oper way to fit speex_echo_capture() and speex_echo_playback()
into the following procedures, assuming they were already wrapped by
jni properly?
speexInit();
final PcmRecorder r = new PcmRecorder();
final PcmPlayer p = new PcmPlayer();
r.setListener(new RecorderListener() {
public void recorded(Object source, byte[] bytes, int length) {
// WHEN A FRAME IS CAPTURED, THIS CALLBACK WILL BE TRIGGERED
int c = speexEncode(bytes);
// this is just for local playback, a demo only
speexDec...