bluetooth_audio: support handling recorded streams chunk by chunk

This patch supports to get one chunk from the stdout of the recorded
subprocess, and write them into individual wav files so that they
can be sent to the DUT for verification of the primary frequencies.

BUG=b:161953821
TEST=Run bluetooth_AdapterAUSanity tests and they should all pass.

Change-Id: I830e7cb38d63eff0ab0cc99685d2d99038f12000
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/chameleon/+/2373975
Reviewed-by: Yu Liu <yudiliu@google.com>
Commit-Queue: Shyh-In Hwang <josephsih@chromium.org>
Tested-by: Shyh-In Hwang <josephsih@chromium.org>
1 file changed