MCPcopy Create free account
hub / github.com/FastFlowLM/FastFlowLM / apply_window_frames

Function apply_window_frames

src/common/audio_process_utils/audioproc.cpp:340–354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

338 // ---------------------------------------------------------------
339
340 void apply_window_frames(
341 const float* waveform,
342 const float* window,
343 float* out_windowed,
344 int num_frames,
345 int frame_length,
346 int hop_length)
347 {
348 for (int f = 0; f < num_frames; f++) {
349 const int offset = f * hop_length;
350 for (int n = 0; n < frame_length; n++) {
351 out_windowed[f * frame_length + n] = waveform[offset + n] * window[n];
352 }
353 }
354 }
355
356 void apply_window_frames_optimized(
357 const float* waveform,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected