Chromium Code Reviews| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 96 const StreamConfig& reverse_input_config, | 96 const StreamConfig& reverse_input_config, |
| 97 const StreamConfig& reverse_output_config, | 97 const StreamConfig& reverse_output_config, |
| 98 float* const* dest) override; | 98 float* const* dest) override; |
| 99 int set_stream_delay_ms(int delay) override; | 99 int set_stream_delay_ms(int delay) override; |
| 100 int stream_delay_ms() const override; | 100 int stream_delay_ms() const override; |
| 101 bool was_stream_delay_set() const override; | 101 bool was_stream_delay_set() const override; |
| 102 void set_delay_offset_ms(int offset) override; | 102 void set_delay_offset_ms(int offset) override; |
| 103 int delay_offset_ms() const override; | 103 int delay_offset_ms() const override; |
| 104 void set_stream_key_pressed(bool key_pressed) override; | 104 void set_stream_key_pressed(bool key_pressed) override; |
| 105 int StartDebugRecording(const char filename[kMaxFilenameSize]) override; | 105 int StartDebugRecording(const char filename[kMaxFilenameSize]) override; |
| 106 int StartDebugRecording(const char filename[kMaxFilenameSize], | |
|
the sun
2015/10/26 10:37:20
I think it makes sense to keep just the interface
ivoc
2015/11/05 13:14:46
Done.
| |
| 107 int max_log_size_bytes) override; | |
| 106 int StartDebugRecording(FILE* handle) override; | 108 int StartDebugRecording(FILE* handle) override; |
| 109 int StartDebugRecording(FILE* handle, int max_log_size_bytes) override; | |
| 107 int StartDebugRecordingForPlatformFile(rtc::PlatformFile handle) override; | 110 int StartDebugRecordingForPlatformFile(rtc::PlatformFile handle) override; |
| 108 int StopDebugRecording() override; | 111 int StopDebugRecording() override; |
| 109 void UpdateHistogramsOnCallEnd() override; | 112 void UpdateHistogramsOnCallEnd() override; |
| 110 EchoCancellation* echo_cancellation() const override; | 113 EchoCancellation* echo_cancellation() const override; |
| 111 EchoControlMobile* echo_control_mobile() const override; | 114 EchoControlMobile* echo_control_mobile() const override; |
| 112 GainControl* gain_control() const override; | 115 GainControl* gain_control() const override; |
| 113 HighPassFilter* high_pass_filter() const override; | 116 HighPassFilter* high_pass_filter() const override; |
| 114 LevelEstimator* level_estimator() const override; | 117 LevelEstimator* level_estimator() const override; |
| 115 NoiseSuppression* noise_suppression() const override; | 118 NoiseSuppression* noise_suppression() const override; |
| 116 VoiceDetection* voice_detection() const override; | 119 VoiceDetection* voice_detection() const override; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 167 // it is different from the last saved one; if |forced|, writes the config | 170 // it is different from the last saved one; if |forced|, writes the config |
| 168 // regardless of the last saved. | 171 // regardless of the last saved. |
| 169 int WriteConfigMessage(bool forced); | 172 int WriteConfigMessage(bool forced); |
| 170 | 173 |
| 171 rtc::scoped_ptr<FileWrapper> debug_file_; | 174 rtc::scoped_ptr<FileWrapper> debug_file_; |
| 172 rtc::scoped_ptr<audioproc::Event> event_msg_; // Protobuf message. | 175 rtc::scoped_ptr<audioproc::Event> event_msg_; // Protobuf message. |
| 173 std::string event_str_; // Memory for protobuf serialization. | 176 std::string event_str_; // Memory for protobuf serialization. |
| 174 | 177 |
| 175 // Serialized string of last saved APM configuration. | 178 // Serialized string of last saved APM configuration. |
| 176 std::string last_serialized_config_; | 179 std::string last_serialized_config_; |
| 180 | |
| 181 // Number of bytes that can still be written to the log before the maximum | |
| 182 // size is reached, a value of -1 indicates that no limit is used. | |
| 183 int nr_bytes_left_for_log; | |
|
kwiberg-webrtc
2015/10/25 02:29:12
Split comment into separate sentences at the comma
hlundin-webrtc
2015/10/30 08:02:21
Yes, and in general, variables dealing with number
kwiberg-webrtc
2015/10/30 09:53:21
Variables dealing with number of bytes, indices, a
hlundin-webrtc
2015/10/30 09:59:14
Ack. I stand corrected.
ivoc
2015/11/05 13:14:46
I went for int64_t, hope that's okay.
| |
| 177 #endif | 184 #endif |
| 178 | 185 |
| 179 // Format of processing streams at input/output call sites. | 186 // Format of processing streams at input/output call sites. |
| 180 ProcessingConfig api_format_; | 187 ProcessingConfig api_format_; |
| 181 | 188 |
| 182 // Only the rate and samples fields of fwd_proc_format_ are used because the | 189 // Only the rate and samples fields of fwd_proc_format_ are used because the |
| 183 // forward processing number of channels is mutable and is tracked by the | 190 // forward processing number of channels is mutable and is tracked by the |
| 184 // capture_audio_. | 191 // capture_audio_. |
| 185 StreamConfig fwd_proc_format_; | 192 StreamConfig fwd_proc_format_; |
| 186 StreamConfig rev_proc_format_; | 193 StreamConfig rev_proc_format_; |
| (...skipping 22 matching lines...) Expand all Loading... | |
| 209 rtc::scoped_ptr<Beamformer<float>> beamformer_; | 216 rtc::scoped_ptr<Beamformer<float>> beamformer_; |
| 210 const std::vector<Point> array_geometry_; | 217 const std::vector<Point> array_geometry_; |
| 211 | 218 |
| 212 bool intelligibility_enabled_; | 219 bool intelligibility_enabled_; |
| 213 rtc::scoped_ptr<IntelligibilityEnhancer> intelligibility_enhancer_; | 220 rtc::scoped_ptr<IntelligibilityEnhancer> intelligibility_enhancer_; |
| 214 }; | 221 }; |
| 215 | 222 |
| 216 } // namespace webrtc | 223 } // namespace webrtc |
| 217 | 224 |
| 218 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AUDIO_PROCESSING_IMPL_H_ | 225 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AUDIO_PROCESSING_IMPL_H_ |
| OLD | NEW |