EchoCancellationImpl::ProcessRenderAudio: Use float samples directly
This patch lets EchoCancellationImpl::ProcessRenderAudio ask the given AudioBuffer for float sample data directly, instead of asking for int16 samples and then converting manually. Since EchoCancellationImpl::ProcessRenderAudio takes a const AudioBuffer*, it was necessary to add some const accessors for float data to AudioBuffer. R=aluebs@webrtc.org, andrew@webrtc.org, bjornv@webrtc.org Review URL: https://webrtc-codereview.appspot.com/14749004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@6590 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -69,8 +69,11 @@ class AudioBuffer {
|
||||
// Float versions of the accessors, with automatic conversion back and forth
|
||||
// as necessary. The range of the numbers are the same as for int16_t.
|
||||
float* data_f(int channel);
|
||||
const float* data_f(int channel) const;
|
||||
float* low_pass_split_data_f(int channel);
|
||||
const float* low_pass_split_data_f(int channel) const;
|
||||
float* high_pass_split_data_f(int channel);
|
||||
const float* high_pass_split_data_f(int channel) const;
|
||||
|
||||
const float* keyboard_data() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user