Home | History | Annotate | Download | only in audio_processing
      1 /*
      2  *  Copyright (c) 2011 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_MAIN_SOURCE_HIGH_PASS_FILTER_IMPL_H_
     12 #define WEBRTC_MODULES_AUDIO_PROCESSING_MAIN_SOURCE_HIGH_PASS_FILTER_IMPL_H_
     13 
     14 #include "audio_processing.h"
     15 #include "processing_component.h"
     16 
     17 namespace webrtc {
     18 class AudioProcessingImpl;
     19 class AudioBuffer;
     20 
     21 class 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   // ProcessingComponent implementation.
     33   virtual int get_version(char* version, int version_len_bytes) const;
     34 
     35  private:
     36   // HighPassFilter implementation.
     37   virtual int Enable(bool enable);
     38 
     39   // ProcessingComponent implementation.
     40   virtual void* CreateHandle() const;
     41   virtual int InitializeHandle(void* handle) const;
     42   virtual int ConfigureHandle(void* handle) const;
     43   virtual int DestroyHandle(void* handle) const;
     44   virtual int num_handles_required() const;
     45   virtual int GetHandleError(void* handle) const;
     46 
     47   const AudioProcessingImpl* apm_;
     48 };
     49 }  // namespace webrtc
     50 
     51 #endif  // WEBRTC_MODULES_AUDIO_PROCESSING_MAIN_SOURCE_HIGH_PASS_FILTER_IMPL_H_
     52