summaryrefslogtreecommitdiff
path: root/modules/audio_processing/aec/echo_cancellation.c
diff options
context:
space:
mode:
authormflodman@webrtc.org <mflodman@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d>2014-05-14 09:39:56 +0000
committermflodman@webrtc.org <mflodman@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d>2014-05-14 09:39:56 +0000
commit339626b52aabd268bb3d2ff5077499afb5175c01 (patch)
tree84b2d1978d49bc4e4373481a2f5d2aac3d4d4975 /modules/audio_processing/aec/echo_cancellation.c
parentff4e2105ba8ceef51a91ac9ed9722ca275a33d53 (diff)
downloadwebrtc-339626b52aabd268bb3d2ff5077499afb5175c01.tar.gz
Revert "Audio processing: Feed each processing step its choice of int or float data"
This reverts r6138. tbr=kwiberg@webrtc.org Review URL: https://webrtc-codereview.appspot.com/13509004 git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@6142 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'modules/audio_processing/aec/echo_cancellation.c')
-rw-r--r--modules/audio_processing/aec/echo_cancellation.c48
1 files changed, 24 insertions, 24 deletions
diff --git a/modules/audio_processing/aec/echo_cancellation.c b/modules/audio_processing/aec/echo_cancellation.c
index ba3b9243..c7f4a9ca 100644
--- a/modules/audio_processing/aec/echo_cancellation.c
+++ b/modules/audio_processing/aec/echo_cancellation.c
@@ -104,18 +104,18 @@ int webrtc_aec_instance_count = 0;
static void EstBufDelayNormal(aecpc_t* aecInst);
static void EstBufDelayExtended(aecpc_t* aecInst);
static int ProcessNormal(aecpc_t* self,
- const float* near,
- const float* near_high,
- float* out,
- float* out_high,
+ const int16_t* near,
+ const int16_t* near_high,
+ int16_t* out,
+ int16_t* out_high,
int16_t num_samples,
int16_t reported_delay_ms,
int32_t skew);
static void ProcessExtended(aecpc_t* self,
- const float* near,
- const float* near_high,
- float* out,
- float* out_high,
+ const int16_t* near,
+ const int16_t* near_high,
+ int16_t* out,
+ int16_t* out_high,
int16_t num_samples,
int16_t reported_delay_ms,
int32_t skew);
@@ -372,10 +372,10 @@ int32_t WebRtcAec_BufferFarend(void* aecInst,
}
int32_t WebRtcAec_Process(void* aecInst,
- const float* nearend,
- const float* nearendH,
- float* out,
- float* outH,
+ const int16_t* nearend,
+ const int16_t* nearendH,
+ int16_t* out,
+ int16_t* outH,
int16_t nrOfSamples,
int16_t msInSndCardBuf,
int32_t skew) {
@@ -632,10 +632,10 @@ AecCore* WebRtcAec_aec_core(void* handle) {
}
static int ProcessNormal(aecpc_t* aecpc,
- const float* nearend,
- const float* nearendH,
- float* out,
- float* outH,
+ const int16_t* nearend,
+ const int16_t* nearendH,
+ int16_t* out,
+ int16_t* outH,
int16_t nrOfSamples,
int16_t msInSndCardBuf,
int32_t skew) {
@@ -689,10 +689,10 @@ static int ProcessNormal(aecpc_t* aecpc,
if (aecpc->startup_phase) {
// Only needed if they don't already point to the same place.
if (nearend != out) {
- memcpy(out, nearend, sizeof(*out) * nrOfSamples);
+ memcpy(out, nearend, sizeof(short) * nrOfSamples);
}
if (nearendH != outH) {
- memcpy(outH, nearendH, sizeof(*outH) * nrOfSamples);
+ memcpy(outH, nearendH, sizeof(short) * nrOfSamples);
}
// The AEC is in the start up mode
@@ -789,10 +789,10 @@ static int ProcessNormal(aecpc_t* aecpc,
}
static void ProcessExtended(aecpc_t* self,
- const float* near,
- const float* near_high,
- float* out,
- float* out_high,
+ const int16_t* near,
+ const int16_t* near_high,
+ int16_t* out,
+ int16_t* out_high,
int16_t num_samples,
int16_t reported_delay_ms,
int32_t skew) {
@@ -823,10 +823,10 @@ static void ProcessExtended(aecpc_t* self,
if (!self->farend_started) {
// Only needed if they don't already point to the same place.
if (near != out) {
- memcpy(out, near, sizeof(*out) * num_samples);
+ memcpy(out, near, sizeof(short) * num_samples);
}
if (near_high != out_high) {
- memcpy(out_high, near_high, sizeof(*out_high) * num_samples);
+ memcpy(out_high, near_high, sizeof(short) * num_samples);
}
return;
}