aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorkwiberg@webrtc.org <kwiberg@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d>2014-05-14 09:01:35 +0000
committerkwiberg@webrtc.org <kwiberg@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d>2014-05-14 09:01:35 +0000
commit934a265a47f71f06fea5878bd50ddcc629ca455a (patch)
tree6fc052cc078e222df4080fd48a4bc10fd3b7a623 /data
parent3d5cb33da4df7eae70c21ba7fd0604fb93c6cedb (diff)
downloadwebrtc-934a265a47f71f06fea5878bd50ddcc629ca455a.tar.gz
Audio processing: Feed each processing step its choice of int or float data
Each audio processing step is given a pointer to an AudioBuffer, where it can read and write int data. This patch adds corresponding AudioBuffer methods to read and write float data; the buffer will automatically convert the stored data between int and float as necessary. This patch also modifies the echo cancellation step to make use of the new methods (it was already using floats internally; now it doesn't have to convert from and to ints anymore). (The reference data to the ApmTest.Process test had to be modified slightly; this is because the echo canceller no longer unnecessarily converts float data to int and then immediately back to float for each iteration in the loop in EchoCancellationImpl::ProcessCaptureAudio.) BUG= R=aluebs@webrtc.org, andrew@webrtc.org Review URL: https://webrtc-codereview.appspot.com/18399005 git-svn-id: http://webrtc.googlecode.com/svn/trunk@6138 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'data')
-rw-r--r--data/audio_processing/output_data_float.pbbin1386 -> 1386 bytes
1 files changed, 0 insertions, 0 deletions
diff --git a/data/audio_processing/output_data_float.pb b/data/audio_processing/output_data_float.pb
index 51346afbc6..ee9b6ccceb 100644
--- a/data/audio_processing/output_data_float.pb
+++ b/data/audio_processing/output_data_float.pb
Binary files differ