Added sleep before closing test audio stream
Removed comment
This commit is contained in:
@ -1826,6 +1826,10 @@ Java_com_tutpro_baresip_Api_create_1AAudio_1SessionId(JNIEnv *env, jobject obj)
|
||||
|
||||
if (AAudioStreamBuilder_openStream(builder, &stream) == AAUDIO_OK) {
|
||||
sessionId = AAudioStream_getSessionId(stream);
|
||||
struct timespec td = {
|
||||
.tv_nsec = 100*1000*1000 /* 100ms */
|
||||
};
|
||||
nanosleep(&td, NULL);
|
||||
AAudioStream_close(stream);
|
||||
}
|
||||
|
||||
|
||||
@ -1062,7 +1062,7 @@ object Utils {
|
||||
|
||||
val aec = AcousticEchoCanceler.create(sessionId)
|
||||
return if (aec != null) {
|
||||
aec.release() // Clean up the AEC instance
|
||||
aec.release()
|
||||
Log.i(TAG, "Hardware AEC is supported")
|
||||
true
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user