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

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: Initial incomplete version. 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
« no previous file with comments | « no previous file | talk/media/webrtc/webrtcvoiceengine.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 an RtcEventLog using an existing file.
112 bool StartRtcEventLog(rtc::PlatformFile file);
the sun 2015/09/29 15:03:08 So, how do you intend to call this from the rest o
113
114 // Stops logging RtcEventLog.
115 void StopRtcEventLog();
116
111 // Create a VoiceEngine Channel. 117 // Create a VoiceEngine Channel.
112 int CreateMediaVoiceChannel(); 118 int CreateMediaVoiceChannel();
113 119
114 private: 120 private:
115 typedef std::vector<WebRtcVoiceMediaChannel*> ChannelList; 121 typedef std::vector<WebRtcVoiceMediaChannel*> ChannelList;
116 122
117 void Construct(); 123 void Construct();
118 void ConstructCodecs(); 124 void ConstructCodecs();
119 bool GetVoeCodec(int index, webrtc::CodecInst* codec); 125 bool GetVoeCodec(int index, webrtc::CodecInst* codec);
120 bool InitInternal(); 126 bool InitInternal();
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 std::vector<webrtc::RtpExtension> recv_rtp_extensions_; 378 std::vector<webrtc::RtpExtension> recv_rtp_extensions_;
373 379
374 // Do not lock this on the VoE media processor thread; potential for deadlock 380 // Do not lock this on the VoE media processor thread; potential for deadlock
375 // exists. 381 // exists.
376 mutable rtc::CriticalSection receive_channels_cs_; 382 mutable rtc::CriticalSection receive_channels_cs_;
377 }; 383 };
378 384
379 } // namespace cricket 385 } // namespace cricket
380 386
381 #endif // TALK_MEDIA_WEBRTCVOICEENGINE_H_ 387 #endif // TALK_MEDIA_WEBRTCVOICEENGINE_H_
OLDNEW
« no previous file with comments | « no previous file | talk/media/webrtc/webrtcvoiceengine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698