The bits_per_sample property in media::AudioParameters is a legacy wart: Audio data throughout the Chrome Audio stack has standardized on 32-bit float planar format, and that format is used regardless of this property's value. One might think this is needed for opening platform audio input/output at a specific quantization precision; however, looking throughout the code base, this property has been hard-coded to 16 in all but just a few cases (and, in those cases*, it does not need to be inside the AudioParameters class). Thus, we should remove this wart from the code base.
[*] Example where it is used, but does not need to be in AudioParameters: https://code.google.com/p/chromium/codesearch#chromium/src/media/audio/sounds/audio_stream_handler.cc&rcl=1462533478&l=63
Comment 1 by dalecur...@chromium.org
, Feb 10 2017Owner: dalecur...@chromium.org
Status: Started (was: Available)