OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2004 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 | 102 |
103 // Starts AEC dump using an existing file. A maximum file size in bytes can be | 103 // Starts AEC dump using an existing file. A maximum file size in bytes can be |
104 // specified. When the maximum file size is reached, logging is stopped and | 104 // specified. When the maximum file size is reached, logging is stopped and |
105 // the file is closed. If max_size_bytes is set to <= 0, no limit will be | 105 // the file is closed. If max_size_bytes is set to <= 0, no limit will be |
106 // used. | 106 // used. |
107 bool StartAecDump(rtc::PlatformFile file, int64_t max_size_bytes); | 107 bool StartAecDump(rtc::PlatformFile file, int64_t max_size_bytes); |
108 | 108 |
109 // Stops AEC dump. | 109 // Stops AEC dump. |
110 void StopAecDump(); | 110 void StopAecDump(); |
111 | 111 |
112 // Starts recording an RtcEventLog using an existing file until the log file | |
113 // reaches the maximum filesize or the StopRtcEventLog function is called. | |
114 // If the value of max_size_bytes is <= 0, no limit is used. | |
115 bool StartRtcEventLog(rtc::PlatformFile file, int64_t max_size_bytes); | |
116 | |
117 // Stops recording the RtcEventLog. | |
118 void StopRtcEventLog(); | |
119 | |
120 private: | 112 private: |
121 // Every option that is "set" will be applied. Every option not "set" will be | 113 // Every option that is "set" will be applied. Every option not "set" will be |
122 // ignored. This allows us to selectively turn on and off different options | 114 // ignored. This allows us to selectively turn on and off different options |
123 // easily at any time. | 115 // easily at any time. |
124 bool ApplyOptions(const AudioOptions& options); | 116 bool ApplyOptions(const AudioOptions& options); |
125 void SetDefaultDevices(); | 117 void SetDefaultDevices(); |
126 | 118 |
127 // webrtc::TraceCallback: | 119 // webrtc::TraceCallback: |
128 void Print(webrtc::TraceLevel level, const char* trace, int length) override; | 120 void Print(webrtc::TraceLevel level, const char* trace, int length) override; |
129 | 121 |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 std::map<uint32_t, WebRtcAudioReceiveStream*> recv_streams_; | 296 std::map<uint32_t, WebRtcAudioReceiveStream*> recv_streams_; |
305 std::vector<webrtc::RtpExtension> recv_rtp_extensions_; | 297 std::vector<webrtc::RtpExtension> recv_rtp_extensions_; |
306 | 298 |
307 SendCodecSpec send_codec_spec_; | 299 SendCodecSpec send_codec_spec_; |
308 | 300 |
309 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(WebRtcVoiceMediaChannel); | 301 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(WebRtcVoiceMediaChannel); |
310 }; | 302 }; |
311 } // namespace cricket | 303 } // namespace cricket |
312 | 304 |
313 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVOICEENGINE_H_ | 305 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVOICEENGINE_H_ |
OLD | NEW |