Added option to specify a maximum file size when recording an AEC dump.
For applications with a strict filesize limit for debug files, I added an option to specify a maximum filesize for AEC dumps. An existing unit test is extended to check that the feature works as advertised. BUG=webrtc:4741 TBR=glaznev@webrtc.org Review URL: https://codereview.webrtc.org/1413483003 Cr-Commit-Position: refs/heads/master@{#11081}
This commit is contained in:
@ -496,7 +496,7 @@ public class PeerConnectionClient {
|
||||
ParcelFileDescriptor.MODE_READ_WRITE |
|
||||
ParcelFileDescriptor.MODE_CREATE |
|
||||
ParcelFileDescriptor.MODE_TRUNCATE);
|
||||
factory.startAecDump(aecDumpFileDescriptor.getFd());
|
||||
factory.startAecDump(aecDumpFileDescriptor.getFd(), -1);
|
||||
} catch(IOException e) {
|
||||
Log.e(TAG, "Can not open aecdump file", e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user