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

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

Issue 1766233003: Drop the restriction on same forward and reverse sample rate on the AudioFrame interface of the APM (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 9 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_unittest.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.cc
diff --git a/webrtc/modules/audio_processing/audio_processing_impl.cc b/webrtc/modules/audio_processing/audio_processing_impl.cc
index a7c120f3956b13f0c4a798a71f961453979dc213..fed3f61564d4e59f0756dd78f553b46c7bddc942 100644
--- a/webrtc/modules/audio_processing/audio_processing_impl.cc
+++ b/webrtc/modules/audio_processing/audio_processing_impl.cc
@@ -871,11 +871,6 @@ int AudioProcessingImpl::AnalyzeReverseStream(AudioFrame* frame) {
frame->sample_rate_hz_ != kSampleRate48kHz) {
return kBadSampleRateError;
}
- // This interface does not tolerate different forward and reverse rates.
- if (frame->sample_rate_hz_ !=
- formats_.api_format.input_stream().sample_rate_hz()) {
- return kBadSampleRateError;
- }
if (frame->num_channels_ <= 0) {
return kBadNumberChannelsError;
« no previous file with comments | « no previous file | webrtc/modules/audio_processing/audio_processing_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698