OLD | NEW |
---|---|
(Empty) | |
1 /* | |
2 * Copyright (c) 2017 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_TEST_IDENTITY_ANALOG_VOLUME_MAPPER_H_ | |
12 #define WEBRTC_MODULES_AUDIO_PROCESSING_TEST_IDENTITY_ANALOG_VOLUME_MAPPER_H_ | |
13 | |
14 #include "webrtc/base/checks.h" | |
15 #include "webrtc/modules/audio_processing/test/analog_volume_mapper.h" | |
16 | |
17 namespace webrtc { | |
18 | |
19 // An analog level mapper in which the level doesn't influence the | |
20 // signal. | |
21 class IdentityAnalogLevelMapper : public AnalogLevelMapper { | |
AleBzk
2017/04/21 10:35:49
Great to have this! We might want to use it in aud
peah-webrtc
2017/04/21 12:04:39
I don't see the purpose of this class. I don't thi
aleloi
2017/04/24 11:34:45
I wanted to always use an AnalogLevelMapper instan
| |
22 public: | |
23 ~IdentityAnalogLevelMapper() = default; | |
24 float get_scaling_factor() const override { return 1.0f; } | |
25 }; | |
26 } // namespace webrtc | |
27 | |
28 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_TEST_IDENTITY_ANALOG_VOLUME_MAPPER_H_ | |
OLD | NEW |