Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: webrtc/modules/audio_processing/test/identity_analog_volume_mapper.h

Issue 2837553002: First try on a fake analog volume control interface for use in audioproc_f. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698