[autotest] audio_data: Add method to query maximum value from format

The maximum value a sample can hold is needed to normalize the audio
data to [-1, 1] so we can better analyze the RMS value to be meaningful
or not.

BUG=chromium:550395
TEST=not used yet.

Change-Id: Icb216546f78318fb35a95be3d2c38ffaea3cc85f
Reviewed-on: https://chromium-review.googlesource.com/313074
Commit-Ready: Cheng-Yi Chiang <cychiang@chromium.org>
Tested-by: Cheng-Yi Chiang <cychiang@chromium.org>
Reviewed-by: Rohit Makasana <rohitbm@chromium.org>
1 file changed