• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  *  Copyright (c) 2018 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 MODULES_AUDIO_PROCESSING_AGC2_RNN_VAD_PITCH_INFO_H_
12 #define MODULES_AUDIO_PROCESSING_AGC2_RNN_VAD_PITCH_INFO_H_
13 
14 namespace webrtc {
15 namespace rnn_vad {
16 
17 // Stores pitch period and gain information. The pitch gain measures the
18 // strength of the pitch (the higher, the stronger).
19 struct PitchInfo {
PitchInfoPitchInfo20   PitchInfo() : period(0), gain(0.f) {}
PitchInfoPitchInfo21   PitchInfo(int p, float g) : period(p), gain(g) {}
22   int period;
23   float gain;
24 };
25 
26 }  // namespace rnn_vad
27 }  // namespace webrtc
28 
29 #endif  // MODULES_AUDIO_PROCESSING_AGC2_RNN_VAD_PITCH_INFO_H_
30