src/media/audio/audio_core/mixer/test/mixer_response_tests.cc
// For the given resampler, target a 4:1 downsampling ratio, articulated by specifying a source
// buffer almost 4x the length of the destination. Note that because of the resampler filter width,
// we may ultimately "wraparound" and feed in the initial source data if we have not yet received
// the full amount of output data needed. The current buffer len (65536) x 8192 subframes/frame
// limits us to <4x SRC ratios.
For the given resampler, target a 4:1 downsampling ratio, articulated by specifying a source
buffer almost 4x the length of the destination. Note that because of the resampler filter width,
we may ultimately "wraparound" and feed in the initial source data if we have not yet received
the full amount of output data needed. The current buffer len (65536) x 8192 subframes/frame
limits us to <4x SRC ratios.
For the given resampler target a 4 : 1 downsampling ratio articulated by specifying a source buffer almost 4x the length of the destination . Note that because of the resampler filter width we may ultimately " wraparound " and feed in the initial source data if we have not yet received the full amount of output data needed . The current buffer len ( 65536 ) x 8192 subframes / frame limits us to <4x SRC ratios .
void TestDownSampleRatio0(Resampler sampler_type, double* freq_resp_results, double* sinad_results,
                          double* phase_results) {
  auto mixer = SelectMixer(ASF::FLOAT, 1, 191999, 1, 48000, sampler_type);
  MeasureFreqRespSinadPhase(mixer.get(), (kFreqTestBufSize << 2) - 1, freq_resp_results,
                            sinad_results, phase_results);
}
void TestDownSampleRatio0 ( Resampler sampler_type , double * freq_resp_results , double * sinad_results , double * phase_results ) { auto mixer = SelectMixer ( ASF :: FLOAT , 1 , 191999 , 1 , 48000 , sampler_type ) ; MeasureFreqRespSinadPhase ( mixer . get ( ) , ( kFreqTestBufSize << 2 ) - 1 , freq_resp_results , sinad_results , phase_results ) ; }
For the given resampler, target a 4:1 downsampling ratio, articulated by specifying a source
buffer almost 4x the length of the destination.
For the given resampler target a 4 : 1 downsampling ratio articulated by specifying a source buffer almost 4x the length of the destination .