Remove an optimization that's no longer worth the extra complexity it causes
The data_ optimization was a way to operate on the data directly instead of copying it, applicable in the mono, non-float case. Since a few audio_processing steps are already using floats (with more hopefully to come), we don't end up benefiting from the optimization anyway, so we might as well remove it. BUG= R=aluebs@webrtc.org, bjornv@webrtc.org Review URL: https://webrtc-codereview.appspot.com/15539004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@6307 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -113,11 +113,6 @@ class AudioBuffer {
|
||||
bool reference_copied_;
|
||||
AudioFrame::VADActivity activity_;
|
||||
|
||||
// If non-null, use this instead of channels_->channel(0). This is an
|
||||
// optimization for the case num_proc_channels_ == 1 that allows us to point
|
||||
// to the data instead of copying it.
|
||||
int16_t* data_;
|
||||
|
||||
const float* keyboard_data_;
|
||||
scoped_ptr<IFChannelBuffer> channels_;
|
||||
scoped_ptr<SplitChannelBuffer> split_channels_;
|
||||
|
Reference in New Issue
Block a user