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 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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. | |
henrika_webrtc
2016/08/22 11:36:14
Any specific range supported?
peah-webrtc
2016/08/23 05:33:44
Yes, excellent point!
I added that now.
| |
424 virtual void SetLevelControllerInitialLevel(float level) = 0; | |
425 | |
422 // Sets a delay |offset| in ms to add to the values passed in through | 426 // Sets a delay |offset| in ms to add to the values passed in through |
423 // set_stream_delay_ms(). May be positive or negative. | 427 // set_stream_delay_ms(). May be positive or negative. |
424 // | 428 // |
425 // Note that this could cause an otherwise valid value passed to | 429 // Note that this could cause an otherwise valid value passed to |
426 // set_stream_delay_ms() to return an error. | 430 // set_stream_delay_ms() to return an error. |
427 virtual void set_delay_offset_ms(int offset) = 0; | 431 virtual void set_delay_offset_ms(int offset) = 0; |
428 virtual int delay_offset_ms() const = 0; | 432 virtual int delay_offset_ms() const = 0; |
429 | 433 |
430 // Starts recording debugging information to a file specified by |filename|, | 434 // Starts recording debugging information to a file specified by |filename|, |
431 // a NULL-terminated string. If there is an ongoing recording, the old file | 435 // 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 Loading... | |
985 // This does not impact the size of frames passed to |ProcessStream()|. | 989 // This does not impact the size of frames passed to |ProcessStream()|. |
986 virtual int set_frame_size_ms(int size) = 0; | 990 virtual int set_frame_size_ms(int size) = 0; |
987 virtual int frame_size_ms() const = 0; | 991 virtual int frame_size_ms() const = 0; |
988 | 992 |
989 protected: | 993 protected: |
990 virtual ~VoiceDetection() {} | 994 virtual ~VoiceDetection() {} |
991 }; | 995 }; |
992 } // namespace webrtc | 996 } // namespace webrtc |
993 | 997 |
994 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ | 998 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ |
OLD | NEW |