Chromium Code Reviews
DescriptionImplement writing mic audio input data to file for debugging purposes.
This is enabled in chrome://webrtc-internals with the current "enable diagnostic audio recordings" checkbox. The user chooses a base filename, on which extensions are added as:
<base name>.<process id>.source_input.<stream id>.pcm
WebRTCInternals tells all RenderProcessHosts to enable recording, which in turn calls the AudioInputRenderHost. The AIRH tells all AudioInputControllers (if any) to enable recording and gives it a pointer to an AudioInputWriter.
When audio data reaches AIC it tells the AudioInputWriter to write the data to file.
When a new AudioInputController is created in AIRH, the recording status is checked, and if enabled it's enabled for the new AIC.
BUG=516584
NOTRY=true
TEST=Browser test. Manually by enabling in http://webrtc-internals and make WebRTC audio call.
Committed: https://crrev.com/7566ffc1f76281738648633c1e7e5fc919d70e13
Cr-Commit-Position: refs/heads/master@{#347605}
Patch Set 1 #
Total comments: 30
Patch Set 2 : Rebase #Patch Set 3 : Code review #
Total comments: 12
Patch Set 4 : Code review + rebase. #
Total comments: 16
Patch Set 5 : Code review. Moved adding pid to filename to RPHI. #
Total comments: 2
Patch Set 6 : Code review #
Total comments: 4
Patch Set 7 : Code review and rebase. #Patch Set 8 : Fixed compile error on Win - fixed file path constants. #Patch Set 9 : Fix incorrect filename if new tab is opened when logging already enabled. #Patch Set 10 : Renamed and updated browser test. Rebase. #
Total comments: 14
Patch Set 11 : Code review + rebase. #Patch Set 12 : Fixed compile error. #Patch Set 13 : Fixed build with WebRTC disabled. Rebase. #Patch Set 14 : Rebase. #Messages
Total messages: 42 (12 generated)
|