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

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

Issue 1774553002: 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: Fix error message 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;
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698