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

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

Issue 1413483003: Added option to specify a maximum file size when recording an AEC dump. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Added function to avoid breaking Chromium. Created 5 years 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 | « talk/media/webrtc/fakewebrtcvoiceengine.h ('k') | 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // Called by WebRtcVoiceMediaChannel to set a gain offset from 87 // Called by WebRtcVoiceMediaChannel to set a gain offset from
88 // the default AGC target level. 88 // the default AGC target level.
89 bool AdjustAgcLevel(int delta); 89 bool AdjustAgcLevel(int delta);
90 90
91 VoEWrapper* voe() { return voe_wrapper_.get(); } 91 VoEWrapper* voe() { return voe_wrapper_.get(); }
92 int GetLastEngineError(); 92 int GetLastEngineError();
93 93
94 // Set the external ADM. This can only be called before Init. 94 // Set the external ADM. This can only be called before Init.
95 bool SetAudioDeviceModule(webrtc::AudioDeviceModule* adm); 95 bool SetAudioDeviceModule(webrtc::AudioDeviceModule* adm);
96 96
97 // Starts AEC dump using existing file. 97 // Starts AEC dump using an existing file. A maximum file size in bytes can be
98 bool StartAecDump(rtc::PlatformFile file); 98 // specified. When the maximum file size is reached, logging is stopped and
99 // the file is closed. If max_size_bytes is set to <= 0, no limit will be
100 // used.
101 bool StartAecDump(rtc::PlatformFile file, int64_t max_size_bytes);
99 102
100 // Stops AEC dump. 103 // Stops AEC dump.
101 void StopAecDump(); 104 void StopAecDump();
102 105
103 // Starts recording an RtcEventLog using an existing file until 10 minutes 106 // Starts recording an RtcEventLog using an existing file until 10 minutes
104 // pass or the StopRtcEventLog function is called. 107 // pass or the StopRtcEventLog function is called.
105 bool StartRtcEventLog(rtc::PlatformFile file); 108 bool StartRtcEventLog(rtc::PlatformFile file);
106 109
107 // Stops recording the RtcEventLog. 110 // Stops recording the RtcEventLog.
108 void StopRtcEventLog(); 111 void StopRtcEventLog();
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 283
281 class WebRtcAudioReceiveStream; 284 class WebRtcAudioReceiveStream;
282 std::map<uint32_t, WebRtcAudioReceiveStream*> recv_streams_; 285 std::map<uint32_t, WebRtcAudioReceiveStream*> recv_streams_;
283 std::vector<webrtc::RtpExtension> recv_rtp_extensions_; 286 std::vector<webrtc::RtpExtension> recv_rtp_extensions_;
284 287
285 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(WebRtcVoiceMediaChannel); 288 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(WebRtcVoiceMediaChannel);
286 }; 289 };
287 } // namespace cricket 290 } // namespace cricket
288 291
289 #endif // TALK_MEDIA_WEBRTCVOICEENGINE_H_ 292 #endif // TALK_MEDIA_WEBRTCVOICEENGINE_H_
OLDNEW
« no previous file with comments | « talk/media/webrtc/fakewebrtcvoiceengine.h ('k') | talk/media/webrtc/webrtcvoiceengine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698