audio_widget: Refactor, subclass and add field to store playback file data format

Refactor with method _scale_and_send_playback_data so that subclasses
like ChameleonLineOutOutputWidgetHandler can use. Add a field to store
playback file data format to ChameleonOutputWidgetHandler.

BUG=chromium:514541
TEST=not used yet.

Change-Id: I888a4ee2277f0324f46535b6d52f533085aeb36e
Reviewed-on: https://chromium-review.googlesource.com/297694
Commit-Ready: Cheng-Yi Chiang <cychiang@chromium.org>
Tested-by: Cheng-Yi Chiang <cychiang@chromium.org>
Reviewed-by: Cheng-Yi Chiang <cychiang@chromium.org>
2 files changed