Revert of Reland "Added option to specify a maximum file size when recording an AEC dump." (patchset #2 id:20001 of https://codereview.webrtc.org/1541633002/ )
Reason for revert: Compile error on Android needs to be fixed before relanding. Original issue's description: > Reland "Added option to specify a maximum file size when recording an AEC dump.", commit ae2c5ad12afc8cc29fe9c59dea432b697b871a87. > > The revert of the original CL was commit 36d4c545007129446e551c45c17b25377dce89a4. > Original review: https://codereview.webrtc.org/1413483003/ > > The original CL changes a function on audio_processing.h that is used by Chrome, this CL adds back the old function. > > NOTRY=true > TBR=glaznev@webrtc.org, henrik.lundin@webrtc.org, solenberg@google.com, henrikg@webrtc.org, perkj@webrtc.org > BUG=webrtc:4741 > > Committed: https://crrev.com/f4f5cb09277d5ef6aeac8341e5f54a055867803a > Cr-Commit-Position: refs/heads/master@{#11093} TBR=glaznev@webrtc.org,henrik.lundin@webrtc.org,solenberg@google.com,henrikg@webrtc.org,perkj@webrtc.org,kwiberg@webrtc.org NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=webrtc:4741 Review URL: https://codereview.webrtc.org/1537213002 Cr-Commit-Position: refs/heads/master@{#11094}
This commit is contained in:
@ -408,22 +408,13 @@ class AudioProcessing {
|
||||
// Starts recording debugging information to a file specified by |filename|,
|
||||
// a NULL-terminated string. If there is an ongoing recording, the old file
|
||||
// will be closed, and recording will continue in the newly specified file.
|
||||
// An already existing file will be overwritten without warning. A maximum
|
||||
// file size (in bytes) for the log can be specified. The logging is stopped
|
||||
// once the limit has been reached. If max_log_size_bytes is set to a value
|
||||
// <= 0, no limit will be used.
|
||||
// An already existing file will be overwritten without warning.
|
||||
static const size_t kMaxFilenameSize = 1024;
|
||||
virtual int StartDebugRecording(const char filename[kMaxFilenameSize],
|
||||
int64_t max_log_size_bytes) = 0;
|
||||
virtual int StartDebugRecording(const char filename[kMaxFilenameSize]) = 0;
|
||||
|
||||
// Same as above but uses an existing file handle. Takes ownership
|
||||
// of |handle| and closes it at StopDebugRecording().
|
||||
virtual int StartDebugRecording(FILE* handle, int64_t max_log_size_bytes) = 0;
|
||||
|
||||
// TODO(ivoc): Remove this function after Chromium switches to the one above.
|
||||
virtual int StartDebugRecording(FILE* handle) {
|
||||
return StartDebugRecording(handle, -1);
|
||||
}
|
||||
virtual int StartDebugRecording(FILE* handle) = 0;
|
||||
|
||||
// Same as above but uses an existing PlatformFile handle. Takes ownership
|
||||
// of |handle| and closes it at StopDebugRecording().
|
||||
|
||||
Reference in New Issue
Block a user