See bug for more info. In this case, the offset of the byteBuffer was observed to be 4 bytes when testing, meaning that the first 4 bytes sent to the AudioSamples callback were empty, and the last 4 bytes that should have been sent were not sent. This CL adjusts the range copied from the backing array to match the offset. Bug: webrtc:9175 Change-Id: I40ac6e10c6d7058ead7eff1c9fa2f342920cf2a4 Reviewed-on: https://webrtc-review.googlesource.com/75123 Reviewed-by: Henrik Andreassson <henrika@webrtc.org> Reviewed-by: Magnus Jedvert <magjed@webrtc.org> Commit-Queue: Paulina Hensman <phensman@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23172}