add AudioConfig to cast_audio_decoder callback
To fix the issue of decoder reporting different sample rate from the demuxer. some AAC streams' (from NBC Sports/ESPN, etc) ADTS header info, especially the sample rate, does not match the payload. The demuxer reports wrong sample rate to mixer, causing incorrect audio resampling. Currently the decodedbuffer does not include the sample rate property, so add AudioConfig field to the callback to return the info back to mixer and adjust the sample rate when needed. It should apply to all audio paths that needs AudioConfig. Bug: internal b/112898981 Test: local test NBC sports, audio sounds normal Depends-On: eureka-internal/199064 Change-Id: Iebef3acf50e856c8fcb47c8d0b13c3598c6df20f Reviewed-on: https://chromium-review.googlesource.com/1213320 Commit-Queue: Yi Fan <yfa@chromium.org> Reviewed-by:Kenneth MacKay <kmackay@chromium.org> Cr-Commit-Position: refs/heads/master@{#589677}
Showing
Please register or sign in to comment