Note: We no longer publish the latest version of our code here. We primarily use a kumc-bmi github organization. The heron ETL repository, in particular, is not public. Peers in the informatics community should see MultiSiteDev for details on requesting access.

source: webrtc/webrtc/modules/audio_processing/level_estimator_impl.h @ 0:4bda6873e34c

pub_scrub_3792 tip
Last change on this file since 0:4bda6873e34c was 0:4bda6873e34c, checked in by Michael Prittie <mprittie@…>, 6 years ago

Scrubbed password for publication.

File size: 1.7 KB
Line 
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_LEVEL_ESTIMATOR_IMPL_H_
12#define WEBRTC_MODULES_AUDIO_PROCESSING_LEVEL_ESTIMATOR_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 LevelEstimatorImpl : public LevelEstimator,
22                           public ProcessingComponent {
23 public:
24  explicit LevelEstimatorImpl(const AudioProcessingImpl* apm);
25  virtual ~LevelEstimatorImpl();
26
27  int ProcessStream(AudioBuffer* audio);
28
29  // LevelEstimator implementation.
30  virtual bool is_enabled() const OVERRIDE;
31
32 private:
33  // LevelEstimator implementation.
34  virtual int Enable(bool enable) OVERRIDE;
35  virtual int RMS() OVERRIDE;
36
37  // ProcessingComponent implementation.
38  virtual void* CreateHandle() const OVERRIDE;
39  virtual int InitializeHandle(void* handle) const OVERRIDE;
40  virtual int ConfigureHandle(void* handle) const OVERRIDE;
41  virtual int DestroyHandle(void* handle) const OVERRIDE;
42  virtual int num_handles_required() const OVERRIDE;
43  virtual int GetHandleError(void* handle) const OVERRIDE;
44
45  const AudioProcessingImpl* apm_;
46};
47}  // namespace webrtc
48
49#endif  // WEBRTC_MODULES_AUDIO_PROCESSING_LEVEL_ESTIMATOR_IMPL_H_
Note: See TracBrowser for help on using the repository browser.