Remove ProcessingComponent's dependence on AudioProcessingImpl.
- Move needed accessors to AudioProcessing. - Inject the crit directly as a dependency. - Remove the now unneeded EchoCancellationImplWrapper. BUG=2894 R=aluebs@webrtc.org Review URL: https://webrtc-codereview.appspot.com/9199004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5620 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -15,13 +15,15 @@
|
||||
#include "webrtc/modules/audio_processing/processing_component.h"
|
||||
|
||||
namespace webrtc {
|
||||
class AudioProcessingImpl;
|
||||
|
||||
class AudioBuffer;
|
||||
class CriticalSectionWrapper;
|
||||
|
||||
class LevelEstimatorImpl : public LevelEstimator,
|
||||
public ProcessingComponent {
|
||||
public:
|
||||
explicit LevelEstimatorImpl(const AudioProcessingImpl* apm);
|
||||
LevelEstimatorImpl(const AudioProcessing* apm,
|
||||
CriticalSectionWrapper* crit);
|
||||
virtual ~LevelEstimatorImpl();
|
||||
|
||||
int ProcessStream(AudioBuffer* audio);
|
||||
@ -42,8 +44,10 @@ class LevelEstimatorImpl : public LevelEstimator,
|
||||
virtual int num_handles_required() const OVERRIDE;
|
||||
virtual int GetHandleError(void* handle) const OVERRIDE;
|
||||
|
||||
const AudioProcessingImpl* apm_;
|
||||
const AudioProcessing* apm_;
|
||||
CriticalSectionWrapper* crit_;
|
||||
};
|
||||
|
||||
} // namespace webrtc
|
||||
|
||||
#endif // WEBRTC_MODULES_AUDIO_PROCESSING_LEVEL_ESTIMATOR_IMPL_H_
|
||||
|
||||
Reference in New Issue
Block a user