Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(308)

Side by Side Diff: talk/media/webrtc/webrtcvoiceengine.h

Issue 1374253002: Added functions on libjingle API to start and stop the recording of an RtcEventLog. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: RtcEventLog takes ownership of the rtc::PlatformFile. Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 void Construct(); 122 void Construct();
116 void ConstructCodecs(); 123 void ConstructCodecs();
117 bool GetVoeCodec(int index, webrtc::CodecInst* codec); 124 bool GetVoeCodec(int index, webrtc::CodecInst* codec);
118 bool InitInternal(); 125 bool InitInternal();
119 void SetTraceFilter(int filter); 126 void SetTraceFilter(int filter);
120 void SetTraceOptions(const std::string& options); 127 void SetTraceOptions(const std::string& options);
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 std::vector<webrtc::RtpExtension> recv_rtp_extensions_; 351 std::vector<webrtc::RtpExtension> recv_rtp_extensions_;
345 352
346 // Do not lock this on the VoE media processor thread; potential for deadlock 353 // Do not lock this on the VoE media processor thread; potential for deadlock
347 // exists. 354 // exists.
348 mutable rtc::CriticalSection receive_channels_cs_; 355 mutable rtc::CriticalSection receive_channels_cs_;
349 }; 356 };
350 357
351 } // namespace cricket 358 } // namespace cricket
352 359
353 #endif // TALK_MEDIA_WEBRTCVOICEENGINE_H_ 360 #endif // TALK_MEDIA_WEBRTCVOICEENGINE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698