OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #include <memory> | |
hlundin-webrtc
2016/02/22 08:55:17
memory is already included in common_audio/vad/inc
kwiberg-webrtc
2016/02/22 14:06:42
Right, my script missed that because the .h file i
| |
12 | |
11 #include "webrtc/common_audio/vad/include/vad.h" | 13 #include "webrtc/common_audio/vad/include/vad.h" |
12 | 14 |
13 #include "webrtc/base/checks.h" | 15 #include "webrtc/base/checks.h" |
14 | 16 |
15 namespace webrtc { | 17 namespace webrtc { |
16 | 18 |
17 namespace { | 19 namespace { |
18 | 20 |
19 class VadImpl final : public Vad { | 21 class VadImpl final : public Vad { |
20 public: | 22 public: |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
54 Aggressiveness aggressiveness_; | 56 Aggressiveness aggressiveness_; |
55 }; | 57 }; |
56 | 58 |
57 } // namespace | 59 } // namespace |
58 | 60 |
59 std::unique_ptr<Vad> CreateVad(Vad::Aggressiveness aggressiveness) { | 61 std::unique_ptr<Vad> CreateVad(Vad::Aggressiveness aggressiveness) { |
60 return std::unique_ptr<Vad>(new VadImpl(aggressiveness)); | 62 return std::unique_ptr<Vad>(new VadImpl(aggressiveness)); |
61 } | 63 } |
62 | 64 |
63 } // namespace webrtc | 65 } // namespace webrtc |
OLD | NEW |