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

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: Rebase Created 4 years, 3 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 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 // audio hardware and t_pull is the time the same frame is passed to 403 // audio hardware and t_pull is the time the same frame is passed to
404 // ProcessStream(). 404 // ProcessStream().
405 virtual int set_stream_delay_ms(int delay) = 0; 405 virtual int set_stream_delay_ms(int delay) = 0;
406 virtual int stream_delay_ms() const = 0; 406 virtual int stream_delay_ms() const = 0;
407 virtual bool was_stream_delay_set() const = 0; 407 virtual bool was_stream_delay_set() const = 0;
408 408
409 // Call to signal that a key press occurred (true) or did not occur (false) 409 // Call to signal that a key press occurred (true) or did not occur (false)
410 // with this chunk of audio. 410 // with this chunk of audio.
411 virtual void set_stream_key_pressed(bool key_pressed) = 0; 411 virtual void set_stream_key_pressed(bool key_pressed) = 0;
412 412
413 // Sets the initial peak level to use inside the level controller in order
414 // to compute the signal gain. The unit for the peak level is dBFS and
415 // the allowed range is [-100, 0].
416 virtual void SetLevelControllerInitialLevel(float level) = 0;
417
413 // Sets a delay |offset| in ms to add to the values passed in through 418 // Sets a delay |offset| in ms to add to the values passed in through
414 // set_stream_delay_ms(). May be positive or negative. 419 // set_stream_delay_ms(). May be positive or negative.
415 // 420 //
416 // Note that this could cause an otherwise valid value passed to 421 // Note that this could cause an otherwise valid value passed to
417 // set_stream_delay_ms() to return an error. 422 // set_stream_delay_ms() to return an error.
418 virtual void set_delay_offset_ms(int offset) = 0; 423 virtual void set_delay_offset_ms(int offset) = 0;
419 virtual int delay_offset_ms() const = 0; 424 virtual int delay_offset_ms() const = 0;
420 425
421 // Starts recording debugging information to a file specified by |filename|, 426 // Starts recording debugging information to a file specified by |filename|,
422 // a NULL-terminated string. If there is an ongoing recording, the old file 427 // a NULL-terminated string. If there is an ongoing recording, the old file
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
974 // This does not impact the size of frames passed to |ProcessStream()|. 979 // This does not impact the size of frames passed to |ProcessStream()|.
975 virtual int set_frame_size_ms(int size) = 0; 980 virtual int set_frame_size_ms(int size) = 0;
976 virtual int frame_size_ms() const = 0; 981 virtual int frame_size_ms() const = 0;
977 982
978 protected: 983 protected:
979 virtual ~VoiceDetection() {} 984 virtual ~VoiceDetection() {}
980 }; 985 };
981 } // namespace webrtc 986 } // namespace webrtc
982 987
983 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ 988 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698