commit | ede3f24c8d6b56aee695ea3a05b5417b7d32cdf9 | [log] [tgz] |
---|---|---|
author | Dean Wheatley <dwhea@dolby.com> | Fri Oct 02 15:31:27 2020 +1000 |
committer | Jean-Michel Trivi <jmtrivi@google.com> | Fri Oct 02 22:29:19 2020 +0000 |
tree | e1da60bbd06df1965f4e28ba6e30ad7a236420b0 | |
parent | 34a1b9c951c38537ab96b69bc308f6e0884823f5 [diff] |
Default compressed audio bytes per sample to 1 To support AudioTrack builder for compressed audio (e.g. AC3) without specifiying setBufferSizeInBytes, default the bytesPerSample to 1, and handle the possible getBytesPerSample exception. Test: atest AudioTrackTest#testAc3BuilderNoBufferSize Bug: 169875806 Change-Id: I1b28d94c4dbf3a72e807ef445163e1dd84e4553b