DescriptionAdd a NeededFrequency() method to the AudioMixer::Source interface.
This change will allow for a audio source to report its sampling rate
to the audio mixer. It is needed in order to mix at a lower sampling
rate. Mixing at a lower sampling rate can in many cases lead to big
efficiency improvements, as reported by experiments.
The code affected is all implementations of the Source interface:
AudioReceiveStream and a mock class. The AudioReceiveStream now
queries its underlying voe::Channel object for the needed frequency.
Note that the changes to the mixing algorithm are done in a later CL.
BUG=webrtc:6346
NOTRY=True
TBR=solenberg@webrtc.org
Committed: https://crrev.com/051f678808d03fb2e68fe2a084b1deeb326c71bf
Cr-Commit-Position: refs/heads/master@{#14839}
Patch Set 1 #
Total comments: 3
Patch Set 2 : Changed name to PreferredSampleRate and made Ssrc const. #
Dependent Patchsets: Messages
Total messages: 12 (7 generated)
|