Home | History | Annotate | Download | only in common_audio

Lines Matching refs:length

40 void WindowGenerator::Hanning(int length, float* window) {
41 RTC_CHECK_GT(length, 1);
43 for (int i = 0; i < length; ++i) {
45 (length - 1)));
49 void WindowGenerator::KaiserBesselDerived(float alpha, size_t length,
51 RTC_CHECK_GT(length, 1U);
54 const size_t half = (length + 1) / 2;
58 complex<float> r = (4.0f * i) / length - 1.0f;
62 for (size_t i = length - 1; i >= half; --i) {
63 window[length - i - 1] = sqrtf(window[length - i - 1] / sum);
64 window[i] = window[length - i - 1];
66 if (length % 2 == 1) {