int WebRtcAec_get_echo_status(void* handle, int* status) { Aec* self = (Aec*)handle; if (status == NULL) { return AEC_NULL_POINTER_ERROR; } if (self->initFlag != initCheck) { return AEC_UNINITIALIZED_ERROR; } *status = WebRtcAec_echo_state(self->aec); return 0; }
int WebRtcAec_get_echo_status(void* handle, int* status) { aecpc_t* self = (aecpc_t*)handle; if (status == NULL) { self->lastError = AEC_NULL_POINTER_ERROR; return -1; } if (self->initFlag != initCheck) { self->lastError = AEC_UNINITIALIZED_ERROR; return -1; } *status = WebRtcAec_echo_state(self->aec); return 0; }