OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2004 Google Inc. | 3 * Copyright 2004 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 | 101 |
102 VoEWrapper* voe() { return voe_wrapper_.get(); } | 102 VoEWrapper* voe() { return voe_wrapper_.get(); } |
103 int GetLastEngineError(); | 103 int GetLastEngineError(); |
104 | 104 |
105 // Set the external ADM. This can only be called before Init. | 105 // Set the external ADM. This can only be called before Init. |
106 bool SetAudioDeviceModule(webrtc::AudioDeviceModule* adm); | 106 bool SetAudioDeviceModule(webrtc::AudioDeviceModule* adm); |
107 | 107 |
108 // Starts AEC dump using existing file. | 108 // Starts AEC dump using existing file. |
109 bool StartAecDump(rtc::PlatformFile file); | 109 bool StartAecDump(rtc::PlatformFile file); |
110 | 110 |
| 111 // Starts recording an RtcEventLog using an existing file until 10 minutes |
| 112 // pass or the StopRtcEventLog function is called. |
| 113 bool StartRtcEventLog(rtc::PlatformFile file); |
| 114 |
| 115 // Stops recording the RtcEventLog. |
| 116 void StopRtcEventLog(); |
| 117 |
111 // Create a VoiceEngine Channel. | 118 // Create a VoiceEngine Channel. |
112 int CreateMediaVoiceChannel(); | 119 int CreateMediaVoiceChannel(); |
113 | 120 |
114 private: | 121 private: |
115 typedef std::vector<WebRtcVoiceMediaChannel*> ChannelList; | 122 typedef std::vector<WebRtcVoiceMediaChannel*> ChannelList; |
116 | 123 |
117 void Construct(); | 124 void Construct(); |
118 void ConstructCodecs(); | 125 void ConstructCodecs(); |
119 bool GetVoeCodec(int index, webrtc::CodecInst* codec); | 126 bool GetVoeCodec(int index, webrtc::CodecInst* codec); |
120 bool InitInternal(); | 127 bool InitInternal(); |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 std::vector<webrtc::RtpExtension> recv_rtp_extensions_; | 379 std::vector<webrtc::RtpExtension> recv_rtp_extensions_; |
373 | 380 |
374 // Do not lock this on the VoE media processor thread; potential for deadlock | 381 // Do not lock this on the VoE media processor thread; potential for deadlock |
375 // exists. | 382 // exists. |
376 mutable rtc::CriticalSection receive_channels_cs_; | 383 mutable rtc::CriticalSection receive_channels_cs_; |
377 }; | 384 }; |
378 | 385 |
379 } // namespace cricket | 386 } // namespace cricket |
380 | 387 |
381 #endif // TALK_MEDIA_WEBRTCVOICEENGINE_H_ | 388 #endif // TALK_MEDIA_WEBRTCVOICEENGINE_H_ |
OLD | NEW |