DescriptionFix initialization of AudioTrack related output parameters
Since AudioCodecBridge::ConfigureAndStart creates AudioTrack
instance with config parameters, we need to initialize the
output parameters with the same values before we get
OnOutputFormatChanged().
Without this step the some changes between config and actual
parameters will be undetected, for instance before this change
(1) config_num_channels = 2, output_num_channels = 2
old output value was 0, unnecessary AudioTrack recreation
(2) config_num_channels = 1, output_num_channels = 2
old output value was 2, no change detected here but
AudioTrack was created with num_channels = 1
BUG=none
Committed: https://crrev.com/42e063e46ffe17c98d198ebf1e046ad492e159ce
Cr-Commit-Position: refs/heads/master@{#398083}
Patch Set 1 #
Messages
Total messages: 9 (3 generated)
|