Home | History | Annotate | Download | only in common_audio

Lines Matching refs:window

40 void WindowGenerator::Hanning(int length, float* window) {
42 RTC_CHECK(window != nullptr);
44 window[i] = 0.5f * (1 - cosf(2 * static_cast<float>(M_PI) * i /
50 float* window) {
52 RTC_CHECK(window != nullptr);
60 window[i] = sum;
63 window[length - i - 1] = sqrtf(window[length - i - 1] / sum);
64 window[i] = window[length - i - 1];
67 window[half - 1] = sqrtf(window[half - 1] / sum);