Adding CustomAudioAnalyzer interface in APM.
CustomAudioAnalyzer is an interface of a component into APM that reads AudioBuffer without changing it. The APM sub-module is optional. It operates in full band. As described in the comments, it is an experimental interface which may be changed in the nearest future. Change-Id: I21edf729d97947529256407b10fa4b5219bb2bf5 Bug: webrtc:9678 Reviewed-on: https://webrtc-review.googlesource.com/96560 Reviewed-by: Alessio Bazzica <alessiob@webrtc.org> Commit-Queue: Alessio Bazzica <alessiob@webrtc.org> Commit-Queue: Valeriia Nemychnikova <valeriian@webrtc.org> Cr-Commit-Position: refs/heads/master@{#24481}
This commit is contained in:
committed by
Commit Bot
parent
7015bb410d
commit
f06eb57a2f
@ -115,6 +115,14 @@ class MockCustomProcessing : public CustomProcessing {
|
||||
MOCK_CONST_METHOD0(ToString, std::string());
|
||||
};
|
||||
|
||||
class MockCustomAudioAnalyzer : public CustomAudioAnalyzer {
|
||||
public:
|
||||
virtual ~MockCustomAudioAnalyzer() {}
|
||||
MOCK_METHOD2(Initialize, void(int sample_rate_hz, int num_channels));
|
||||
MOCK_METHOD1(Analyze, void(const AudioBuffer* audio));
|
||||
MOCK_CONST_METHOD0(ToString, std::string());
|
||||
};
|
||||
|
||||
class MockEchoControl : public EchoControl {
|
||||
public:
|
||||
virtual ~MockEchoControl() {}
|
||||
|
||||
Reference in New Issue
Block a user