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

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

Issue 2254973003: Added functionality for specifying the initial signal level to use for the gain estimation in the l… (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Changed the level to be specified in dBFS Created 4 years, 4 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 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 // audio hardware and t_pull is the time the same frame is passed to 412 // audio hardware and t_pull is the time the same frame is passed to
413 // ProcessStream(). 413 // ProcessStream().
414 virtual int set_stream_delay_ms(int delay) = 0; 414 virtual int set_stream_delay_ms(int delay) = 0;
415 virtual int stream_delay_ms() const = 0; 415 virtual int stream_delay_ms() const = 0;
416 virtual bool was_stream_delay_set() const = 0; 416 virtual bool was_stream_delay_set() const = 0;
417 417
418 // Call to signal that a key press occurred (true) or did not occur (false) 418 // Call to signal that a key press occurred (true) or did not occur (false)
419 // with this chunk of audio. 419 // with this chunk of audio.
420 virtual void set_stream_key_pressed(bool key_pressed) = 0; 420 virtual void set_stream_key_pressed(bool key_pressed) = 0;
421 421
422 // Sets the initial peak level to use inside the level controller in order
423 // to compute the signal gain. The unit for the peak level is dBFS and
424 // the allowed range is [-100, 0].
425 virtual void SetLevelControllerInitialLevel(float level) = 0;
426
422 // Sets a delay |offset| in ms to add to the values passed in through 427 // Sets a delay |offset| in ms to add to the values passed in through
423 // set_stream_delay_ms(). May be positive or negative. 428 // set_stream_delay_ms(). May be positive or negative.
424 // 429 //
425 // Note that this could cause an otherwise valid value passed to 430 // Note that this could cause an otherwise valid value passed to
426 // set_stream_delay_ms() to return an error. 431 // set_stream_delay_ms() to return an error.
427 virtual void set_delay_offset_ms(int offset) = 0; 432 virtual void set_delay_offset_ms(int offset) = 0;
428 virtual int delay_offset_ms() const = 0; 433 virtual int delay_offset_ms() const = 0;
429 434
430 // Starts recording debugging information to a file specified by |filename|, 435 // Starts recording debugging information to a file specified by |filename|,
431 // a NULL-terminated string. If there is an ongoing recording, the old file 436 // a NULL-terminated string. If there is an ongoing recording, the old file
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after
985 // This does not impact the size of frames passed to |ProcessStream()|. 990 // This does not impact the size of frames passed to |ProcessStream()|.
986 virtual int set_frame_size_ms(int size) = 0; 991 virtual int set_frame_size_ms(int size) = 0;
987 virtual int frame_size_ms() const = 0; 992 virtual int frame_size_ms() const = 0;
988 993
989 protected: 994 protected:
990 virtual ~VoiceDetection() {} 995 virtual ~VoiceDetection() {}
991 }; 996 };
992 } // namespace webrtc 997 } // namespace webrtc
993 998
994 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ 999 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698