int WebRtcAec_GetDelayMetrics(void* handle, int* median, int* std) { aecpc_t* self = handle; if (handle == NULL) { return -1; } if (median == NULL) { self->lastError = AEC_NULL_POINTER_ERROR; return -1; } if (std == NULL) { self->lastError = AEC_NULL_POINTER_ERROR; return -1; } if (self->initFlag != initCheck) { self->lastError = AEC_UNINITIALIZED_ERROR; return -1; } if (WebRtcAec_GetDelayMetricsCore(self->aec, median, std) == -1) { // Logging disabled. self->lastError = AEC_UNSUPPORTED_FUNCTION_ERROR; return -1; } return 0; }
int WebRtcAec_GetDelayMetrics(void* handle, int* median, int* std, float* fraction_poor_delays) { Aec* self = handle; if (median == NULL) { return AEC_NULL_POINTER_ERROR; } if (std == NULL) { return AEC_NULL_POINTER_ERROR; } if (self->initFlag != initCheck) { return AEC_UNINITIALIZED_ERROR; } if (WebRtcAec_GetDelayMetricsCore(self->aec, median, std, fraction_poor_delays) == -1) { // Logging disabled. return AEC_UNSUPPORTED_FUNCTION_ERROR; } return 0; }