| 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, |
no outgoing calls
no test coverage detected