MCPcopy Create free account
hub / github.com/HackWebRTC/webrtc / PreprocessToAddData

Method PreprocessToAddData

modules/audio_coding/acm2/audio_coding_module.cc:450–540  ·  view source on GitHub ↗

Perform a resampling and down-mix if required. We down-mix only if encoder is mono and input is stereo. In case of dual-streaming, both encoders has to be mono for down-mix to take place. |*ptr_out| will point to the pre-processed audio-frame. If no pre-processing is required, |*ptr_out| points to |in_frame|. TODO(yujo): Make this more efficient for muted frames.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 8

DownMixFrameFunction · 0.85
mutable_dataMethod · 0.80
Resample10MsecMethod · 0.80
SampleRateHzMethod · 0.45
NumChannelsMethod · 0.45
CopyFromMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected