Home
last modified time | relevance | path

Searched refs:src_sample_rate_hz (Results 1 – 4 of 4) sorted by relevance

/external/webrtc/webrtc/common_audio/resampler/
Dpush_resampler.cc33 int PushResampler<T>::InitializeIfNeeded(int src_sample_rate_hz, in InitializeIfNeeded() argument
36 if (src_sample_rate_hz == src_sample_rate_hz_ && in InitializeIfNeeded()
42 if (src_sample_rate_hz <= 0 || dst_sample_rate_hz <= 0 || in InitializeIfNeeded()
46 src_sample_rate_hz_ = src_sample_rate_hz; in InitializeIfNeeded()
51 static_cast<size_t>(src_sample_rate_hz / 100); in InitializeIfNeeded()
/external/webrtc/webrtc/voice_engine/
Dutility_unittest.cc35 int src_sample_rate_hz,
127 int src_sample_rate_hz, in RunResampleTest() argument
133 const float resampling_factor = (1.0 * src_sample_rate_hz) / in RunResampleTest()
139 SetMonoFrame(&src_frame_, kSrcLeft, src_sample_rate_hz); in RunResampleTest()
141 SetStereoFrame(&src_frame_, kSrcLeft, kSrcRight, src_sample_rate_hz); in RunResampleTest()
162 static_cast<double>(dst_sample_rate_hz) / src_sample_rate_hz * in RunResampleTest()
165 src_channels, src_sample_rate_hz, dst_channels, dst_sample_rate_hz); in RunResampleTest()
168 if (src_sample_rate_hz == 96000 && dst_sample_rate_hz == 8000) { in RunResampleTest()
/external/webrtc/webrtc/common_audio/
Daudio_converter_unittest.cc90 int src_sample_rate_hz, in RunAudioConverterTest() argument
95 const float resampling_factor = (1.f * src_sample_rate_hz) / in RunAudioConverterTest()
100 const size_t src_frames = static_cast<size_t>(src_sample_rate_hz / 100); in RunAudioConverterTest()
127 const size_t delay_frames = src_sample_rate_hz == dst_sample_rate_hz ? 0 : in RunAudioConverterTest()
129 PushSincResampler::AlgorithmicDelaySeconds(src_sample_rate_hz) * in RunAudioConverterTest()
133 src_channels, src_sample_rate_hz, dst_channels, dst_sample_rate_hz); in RunAudioConverterTest()
/external/webrtc/webrtc/common_audio/resampler/include/
Dpush_resampler.h31 int InitializeIfNeeded(int src_sample_rate_hz, int dst_sample_rate_hz,