Fix ENCODING_DTS_UHD_P2 Issue#1299
Conversation
|
@microkatz Here is the new PR that merges into main branch. Thanks. |
|
Thanks for creating the new PR! One quick point, I think you may have missed a spot in the |
@microkatz Thanks for pointing that out. However, DTS:X Profile 2 has a smaller number of audio samples per channel per frame compared to DTS-HD (DTS Express). So it does not require a bigger multiple for buffersize computation. :) |
e010939 to
512eb55
Compare
|
I'm going to send this for internal review now. You may see some more commits being added as I make changes in response to review feedback. Please refrain from pushing any more substantive changes as it will complicate the internal review - thanks! |
512eb55 to
6363017
Compare
During Direct Passthrough Audio Playback on platforms that supports AudioFormat.ENCODING_DTS_UHD_P2, we need to include C.ENCODING_DTS_UHD_P2 in DefaultAudioSink.getFramesPerEncodedSample() and DefaultAudioTrackBufferSizeProvider.getMaximumEncodedRateBytesPerSecond().