Home
last modified time | relevance | path

Searched refs:apm_ (Results 1 – 17 of 17) sorted by relevance

/external/webrtc/src/modules/audio_processing/main/test/unit_test/
Dunit_test.cc59 webrtc::AudioProcessing* apm_; member in __anon9dc79bea0111::ApmTest
68 : apm_(NULL), in ApmTest()
75 apm_ = AudioProcessing::Create(0); in SetUp()
76 ASSERT_TRUE(apm_ != NULL); in SetUp()
81 ASSERT_EQ(apm_->kNoError, apm_->set_sample_rate_hz(32000)); in SetUp()
82 ASSERT_EQ(apm_->kNoError, apm_->set_num_channels(2, 2)); in SetUp()
83 ASSERT_EQ(apm_->kNoError, apm_->set_num_reverse_channels(2)); in SetUp()
119 if (apm_ != NULL) { in TearDown()
120 AudioProcessing::Destroy(apm_); in TearDown()
122 apm_ = NULL; in TearDown()
[all …]
/external/webrtc/src/modules/audio_processing/main/source/
Decho_control_mobile_impl.cc62 apm_(apm), in EchoControlMobileImpl()
70 return apm_->kNoError; in ProcessRenderAudio()
74 assert(audio->num_channels() == apm_->num_reverse_channels()); in ProcessRenderAudio()
76 int err = apm_->kNoError; in ProcessRenderAudio()
80 for (int i = 0; i < apm_->num_output_channels(); i++) { in ProcessRenderAudio()
88 if (err != apm_->kNoError) { in ProcessRenderAudio()
96 return apm_->kNoError; in ProcessRenderAudio()
101 return apm_->kNoError; in ProcessCaptureAudio()
104 if (!apm_->was_stream_delay_set()) { in ProcessCaptureAudio()
105 return apm_->kStreamParameterNotSetError; in ProcessCaptureAudio()
[all …]
Decho_cancellation_impl.cc62 apm_(apm), in EchoCancellationImpl()
75 return apm_->kNoError; in ProcessRenderAudio()
79 assert(audio->num_channels() == apm_->num_reverse_channels()); in ProcessRenderAudio()
81 int err = apm_->kNoError; in ProcessRenderAudio()
85 for (int i = 0; i < apm_->num_output_channels(); i++) { in ProcessRenderAudio()
93 if (err != apm_->kNoError) { in ProcessRenderAudio()
101 return apm_->kNoError; in ProcessRenderAudio()
106 return apm_->kNoError; in ProcessCaptureAudio()
109 if (!apm_->was_stream_delay_set()) { in ProcessCaptureAudio()
110 return apm_->kStreamParameterNotSetError; in ProcessCaptureAudio()
[all …]
Dgain_control_impl.cc58 apm_(apm), in GainControlImpl()
73 return apm_->kNoError; in ProcessRenderAudio()
91 if (err != apm_->kNoError) { in ProcessRenderAudio()
96 return apm_->kNoError; in ProcessRenderAudio()
101 return apm_->kNoError; in AnalyzeCaptureAudio()
107 int err = apm_->kNoError; in AnalyzeCaptureAudio()
118 if (err != apm_->kNoError) { in AnalyzeCaptureAudio()
139 if (err != apm_->kNoError) { in AnalyzeCaptureAudio()
146 return apm_->kNoError; in AnalyzeCaptureAudio()
151 return apm_->kNoError; in ProcessCaptureAudio()
[all …]
Dvoice_detection_impl.cc49 apm_(apm), in VoiceDetectionImpl()
60 return apm_->kNoError; in ProcessCaptureAudio()
65 return apm_->kNoError; in ProcessCaptureAudio()
79 apm_->split_sample_rate_hz(), in ProcessCaptureAudio()
88 return apm_->kUnspecifiedError; in ProcessCaptureAudio()
91 return apm_->kNoError; in ProcessCaptureAudio()
95 CriticalSectionScoped crit_scoped(*apm_->crit()); in Enable()
106 return apm_->kNoError; in set_stream_has_voice()
116 CriticalSectionScoped crit_scoped(*apm_->crit()); in set_likelihood()
118 return apm_->kBadParameterError; in set_likelihood()
[all …]
Dlevel_estimator_impl.cc84 apm_(apm) {} in LevelEstimatorImpl()
89 return apm_->kUnsupportedComponentError; in AnalyzeReverseStream()
98 return apm_->kUnsupportedComponentError; in ProcessCaptureAudio()
107 CriticalSectionScoped crit_scoped(*apm_->crit()); in Enable()
108 return apm_->kUnsupportedComponentError; in Enable()
118 return apm_->kUnsupportedComponentError; in GetMetrics()
140 return apm_->kNoError; in get_version()
155 return apm_->kUnsupportedComponentError; in DestroyHandle()
160 return apm_->kUnsupportedComponentError; in InitializeHandle()
168 return apm_->kUnsupportedComponentError; in ConfigureHandle()
[all …]
Dnoise_suppression_impl.cc52 apm_(apm), in NoiseSuppressionImpl()
58 int err = apm_->kNoError; in ProcessCaptureAudio()
61 return apm_->kNoError; in ProcessCaptureAudio()
82 if (err != apm_->kNoError) { in ProcessCaptureAudio()
87 return apm_->kNoError; in ProcessCaptureAudio()
91 CriticalSectionScoped crit_scoped(*apm_->crit()); in Enable()
100 CriticalSectionScoped crit_scoped(*apm_->crit()); in set_level()
102 return apm_->kBadParameterError; in set_level()
121 return apm_->kBadParameterError; in get_version()
124 return apm_->kNoError; in get_version()
[all …]
Dprocessing_component.cc20 : apm_(apm), in ProcessingComponent()
36 return apm_->kNoError; in Destroy()
44 if (err != apm_->kNoError) { in EnableComponent()
52 return apm_->kNoError; in EnableComponent()
70 return apm_->kNoError; in Initialize()
83 return apm_->kCreationFailedError; in Initialize()
88 if (err != apm_->kNoError) { in Initialize()
99 return apm_->kNoError; in Configure()
105 if (err != apm_->kNoError) { in Configure()
110 return apm_->kNoError; in Configure()
Dhigh_pass_filter_impl.cc110 apm_(apm) {} in HighPassFilterImpl()
115 int err = apm_->kNoError; in ProcessCaptureAudio()
118 return apm_->kNoError; in ProcessCaptureAudio()
129 if (err != apm_->kNoError) { in ProcessCaptureAudio()
134 return apm_->kNoError; in ProcessCaptureAudio()
138 CriticalSectionScoped crit_scoped(*apm_->crit()); in Enable()
150 return apm_->kNoError; in get_version()
159 return apm_->kNoError; in DestroyHandle()
164 apm_->sample_rate_hz()); in InitializeHandle()
168 return apm_->kNoError; // Not configurable. in ConfigureHandle()
[all …]
Dhigh_pass_filter_impl.h47 const AudioProcessingImpl* apm_; variable
Dprocessing_component.h55 const AudioProcessingImpl* apm_; variable
Dnoise_suppression_impl.h49 const AudioProcessingImpl* apm_; variable
Dlevel_estimator_impl.h49 const AudioProcessingImpl* apm_; variable
Decho_control_mobile_impl.h53 const AudioProcessingImpl* apm_; variable
Dvoice_detection_impl.h54 const AudioProcessingImpl* apm_; variable
Decho_cancellation_impl.h61 const AudioProcessingImpl* apm_; variable
Dgain_control_impl.h66 const AudioProcessingImpl* apm_; variable