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

Side by Side Diff: webrtc/modules/audio_processing/include/audio_processing.h

Issue 1781893002: Revert of Drop the 16kHz sample rate restriction on AECM and zero out higher bands (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 9 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
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
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;
511 512
512 static const int kChunkSizeMs = 10; 513 static const int kChunkSizeMs = 10;
513 }; 514 };
514 515
515 class StreamConfig { 516 class StreamConfig {
516 public: 517 public:
517 // sample_rate_hz: The sampling rate of the stream. 518 // sample_rate_hz: The sampling rate of the stream.
518 // 519 //
519 // num_channels: The number of audio channels in the stream, excluding the 520 // num_channels: The number of audio channels in the stream, excluding the
520 // keyboard channel if it is present. When passing a 521 // keyboard channel if it is present. When passing a
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
977 // This does not impact the size of frames passed to |ProcessStream()|. 978 // This does not impact the size of frames passed to |ProcessStream()|.
978 virtual int set_frame_size_ms(int size) = 0; 979 virtual int set_frame_size_ms(int size) = 0;
979 virtual int frame_size_ms() const = 0; 980 virtual int frame_size_ms() const = 0;
980 981
981 protected: 982 protected:
982 virtual ~VoiceDetection() {} 983 virtual ~VoiceDetection() {}
983 }; 984 };
984 } // namespace webrtc 985 } // namespace webrtc
985 986
986 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ 987 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698