Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Unified Diff: webrtc/modules/audio_processing/aec/echo_cancellation.c

Issue 1671613004: Made implicit casts in the echo canceller explicit. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_processing/aec/echo_cancellation.c
diff --git a/webrtc/modules/audio_processing/aec/echo_cancellation.c b/webrtc/modules/audio_processing/aec/echo_cancellation.c
index f398093b5e4fb9e88d28bde9df227ab1f4f3bd68..5a30cc3ce486ad66ce90cd91899b8171f7446521 100644
--- a/webrtc/modules/audio_processing/aec/echo_cancellation.c
+++ b/webrtc/modules/audio_processing/aec/echo_cancellation.c
@@ -164,7 +164,7 @@ void* WebRtcAec_Create() {
}
void WebRtcAec_Free(void* aecInst) {
- Aec* aecpc = aecInst;
+ Aec* aecpc = (Aec*)aecInst;
if (aecpc == NULL) {
return;
@@ -184,7 +184,7 @@ void WebRtcAec_Free(void* aecInst) {
}
int32_t WebRtcAec_Init(void* aecInst, int32_t sampFreq, int32_t scSampFreq) {
- Aec* aecpc = aecInst;
+ Aec* aecpc = (Aec*)aecInst;
AecConfig aecConfig;
if (sampFreq != 8000 && sampFreq != 16000 && sampFreq != 32000 &&
@@ -265,7 +265,7 @@ int32_t WebRtcAec_Init(void* aecInst, int32_t sampFreq, int32_t scSampFreq) {
int32_t WebRtcAec_GetBufferFarendError(void* aecInst,
const float* farend,
size_t nrOfSamples) {
- Aec* aecpc = aecInst;
+ Aec* aecpc = (Aec*)aecInst;
if (!farend)
return AEC_NULL_POINTER_ERROR;
@@ -284,7 +284,7 @@ int32_t WebRtcAec_GetBufferFarendError(void* aecInst,
int32_t WebRtcAec_BufferFarend(void* aecInst,
const float* farend,
size_t nrOfSamples) {
- Aec* aecpc = aecInst;
+ Aec* aecpc = (Aec*)aecInst;
size_t newNrOfSamples = nrOfSamples;
float new_farend[MAX_RESAMP_LEN];
const float* farend_ptr = farend;
@@ -335,7 +335,7 @@ int32_t WebRtcAec_Process(void* aecInst,
size_t nrOfSamples,
int16_t msInSndCardBuf,
int32_t skew) {
- Aec* aecpc = aecInst;
+ Aec* aecpc = (Aec*)aecInst;
int32_t retVal = 0;
if (out == NULL) {
@@ -524,7 +524,7 @@ int WebRtcAec_GetDelayMetrics(void* handle,
int* median,
int* std,
float* fraction_poor_delays) {
- Aec* self = handle;
+ Aec* self = (Aec*)handle;
if (median == NULL) {
return AEC_NULL_POINTER_ERROR;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698