OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 |
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
501 enum NativeRate { | 501 enum NativeRate { |
502 kSampleRate8kHz = 8000, | 502 kSampleRate8kHz = 8000, |
503 kSampleRate16kHz = 16000, | 503 kSampleRate16kHz = 16000, |
504 kSampleRate32kHz = 32000, | 504 kSampleRate32kHz = 32000, |
505 kSampleRate48kHz = 48000 | 505 kSampleRate48kHz = 48000 |
506 }; | 506 }; |
507 | 507 |
508 static const int kNativeSampleRatesHz[]; | 508 static const int kNativeSampleRatesHz[]; |
509 static const size_t kNumNativeSampleRates; | 509 static const size_t kNumNativeSampleRates; |
510 static const int kMaxNativeSampleRateHz; | 510 static const int kMaxNativeSampleRateHz; |
511 static const int kMaxAECMSampleRateHz; | |
512 | 511 |
513 static const int kChunkSizeMs = 10; | 512 static const int kChunkSizeMs = 10; |
514 }; | 513 }; |
515 | 514 |
516 class StreamConfig { | 515 class StreamConfig { |
517 public: | 516 public: |
518 // sample_rate_hz: The sampling rate of the stream. | 517 // sample_rate_hz: The sampling rate of the stream. |
519 // | 518 // |
520 // num_channels: The number of audio channels in the stream, excluding the | 519 // num_channels: The number of audio channels in the stream, excluding the |
521 // keyboard channel if it is present. When passing a | 520 // keyboard channel if it is present. When passing a |
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
978 // This does not impact the size of frames passed to |ProcessStream()|. | 977 // This does not impact the size of frames passed to |ProcessStream()|. |
979 virtual int set_frame_size_ms(int size) = 0; | 978 virtual int set_frame_size_ms(int size) = 0; |
980 virtual int frame_size_ms() const = 0; | 979 virtual int frame_size_ms() const = 0; |
981 | 980 |
982 protected: | 981 protected: |
983 virtual ~VoiceDetection() {} | 982 virtual ~VoiceDetection() {} |
984 }; | 983 }; |
985 } // namespace webrtc | 984 } // namespace webrtc |
986 | 985 |
987 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ | 986 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ |
OLD | NEW |