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

Unified Diff: webrtc/modules/audio_processing/audio_processing_impl.h

Issue 2444793005: Moved the AECM render sample queue into the audio processing module (Closed)
Patch Set: Rebase Created 4 years, 2 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 | webrtc/modules/audio_processing/audio_processing_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_processing/audio_processing_impl.h
diff --git a/webrtc/modules/audio_processing/audio_processing_impl.h b/webrtc/modules/audio_processing/audio_processing_impl.h
index d6af64d22f08dffdf62aa8c198429e5236e96f52..817b6b2fe8ad8ce7cbbe66383702c1095bd90420 100644
--- a/webrtc/modules/audio_processing/audio_processing_impl.h
+++ b/webrtc/modules/audio_processing/audio_processing_impl.h
@@ -371,14 +371,22 @@ class AudioProcessingImpl : public AudioProcessing {
std::unique_ptr<AudioBuffer> render_audio;
} render_ GUARDED_BY(crit_render_);
- size_t render_queue_element_max_size_ GUARDED_BY(crit_render_)
+ size_t float_render_queue_element_max_size_ GUARDED_BY(crit_render_)
GUARDED_BY(crit_capture_) = 0;
- std::vector<float> render_queue_buffer_ GUARDED_BY(crit_render_);
- std::vector<float> capture_queue_buffer_ GUARDED_BY(crit_capture_);
+ std::vector<float> float_render_queue_buffer_ GUARDED_BY(crit_render_);
+ std::vector<float> float_capture_queue_buffer_ GUARDED_BY(crit_capture_);
+
+ size_t int16_render_queue_element_max_size_ GUARDED_BY(crit_render_)
+ GUARDED_BY(crit_capture_) = 0;
+ std::vector<int16_t> int16_render_queue_buffer_ GUARDED_BY(crit_render_);
+ std::vector<int16_t> int16_capture_queue_buffer_ GUARDED_BY(crit_capture_);
// Lock protection not needed.
std::unique_ptr<SwapQueue<std::vector<float>, RenderQueueItemVerifier<float>>>
- render_signal_queue_;
+ float_render_signal_queue_;
+ std::unique_ptr<
+ SwapQueue<std::vector<int16_t>, RenderQueueItemVerifier<int16_t>>>
+ int16_render_signal_queue_;
};
} // namespace webrtc
« no previous file with comments | « no previous file | webrtc/modules/audio_processing/audio_processing_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698