high_pass_filter_impl.h revision 7fad4b8c9f1e9a6e3de9962fb74d4953b4f1bb03
1/*
2 *  Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 *
4 *  Use of this source code is governed by a BSD-style license
5 *  that can be found in the LICENSE file in the root of the source
6 *  tree. An additional intellectual property rights grant can be found
7 *  in the file PATENTS.  All contributing project authors may
8 *  be found in the AUTHORS file in the root of the source tree.
9 */
10
11#ifndef WEBRTC_MODULES_AUDIO_PROCESSING_HIGH_PASS_FILTER_IMPL_H_
12#define WEBRTC_MODULES_AUDIO_PROCESSING_HIGH_PASS_FILTER_IMPL_H_
13
14#include "webrtc/modules/audio_processing/include/audio_processing.h"
15#include "webrtc/modules/audio_processing/processing_component.h"
16
17namespace webrtc {
18class AudioProcessingImpl;
19class AudioBuffer;
20
21class HighPassFilterImpl : public HighPassFilter,
22                           public ProcessingComponent {
23 public:
24  explicit HighPassFilterImpl(const AudioProcessingImpl* apm);
25  virtual ~HighPassFilterImpl();
26
27  int ProcessCaptureAudio(AudioBuffer* audio);
28
29  // HighPassFilter implementation.
30  virtual bool is_enabled() const;
31
32 private:
33  // HighPassFilter implementation.
34  virtual int Enable(bool enable);
35
36  // ProcessingComponent implementation.
37  virtual void* CreateHandle() const;
38  virtual int InitializeHandle(void* handle) const;
39  virtual int ConfigureHandle(void* handle) const;
40  virtual int DestroyHandle(void* handle) const;
41  virtual int num_handles_required() const;
42  virtual int GetHandleError(void* handle) const;
43
44  const AudioProcessingImpl* apm_;
45};
46}  // namespace webrtc
47
48#endif  // WEBRTC_MODULES_AUDIO_PROCESSING_HIGH_PASS_FILTER_IMPL_H_
49