| 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 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 | |
| 418 // Sets a delay |offset| in ms to add to the values passed in through | 413 // Sets a delay |offset| in ms to add to the values passed in through |
| 419 // set_stream_delay_ms(). May be positive or negative. | 414 // set_stream_delay_ms(). May be positive or negative. |
| 420 // | 415 // |
| 421 // Note that this could cause an otherwise valid value passed to | 416 // Note that this could cause an otherwise valid value passed to |
| 422 // set_stream_delay_ms() to return an error. | 417 // set_stream_delay_ms() to return an error. |
| 423 virtual void set_delay_offset_ms(int offset) = 0; | 418 virtual void set_delay_offset_ms(int offset) = 0; |
| 424 virtual int delay_offset_ms() const = 0; | 419 virtual int delay_offset_ms() const = 0; |
| 425 | 420 |
| 426 // Starts recording debugging information to a file specified by |filename|, | 421 // Starts recording debugging information to a file specified by |filename|, |
| 427 // a NULL-terminated string. If there is an ongoing recording, the old file | 422 // 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 Loading... |
| 979 // This does not impact the size of frames passed to |ProcessStream()|. | 974 // This does not impact the size of frames passed to |ProcessStream()|. |
| 980 virtual int set_frame_size_ms(int size) = 0; | 975 virtual int set_frame_size_ms(int size) = 0; |
| 981 virtual int frame_size_ms() const = 0; | 976 virtual int frame_size_ms() const = 0; |
| 982 | 977 |
| 983 protected: | 978 protected: |
| 984 virtual ~VoiceDetection() {} | 979 virtual ~VoiceDetection() {} |
| 985 }; | 980 }; |
| 986 } // namespace webrtc | 981 } // namespace webrtc |
| 987 | 982 |
| 988 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ | 983 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ |
| OLD | NEW |