| 504 | } |
| 505 | |
| 506 | std::unique_ptr<AudioChannel> HRTFKernel::createImpulseResponse() |
| 507 | { |
| 508 | std::unique_ptr<AudioChannel> channel(new AudioChannel(fftSize())); |
| 509 | FFTFrame fftFrame(*m_fftFrame); |
| 510 | |
| 511 | // Add leading delay back in. |
| 512 | fftFrame.addConstantGroupDelay(m_frameDelay); |
| 513 | fftFrame.computeInverseFFT(channel->mutableData()); |
| 514 | |
| 515 | return channel; |
| 516 | } |
| 517 | |
| 518 | // Interpolates two kernels with x: 0 -> 1 and returns the result. |
| 519 | std::unique_ptr<HRTFKernel> MakeInterpolatedKernel(HRTFKernel * kernel1, HRTFKernel * kernel2, float x) |
nothing calls this directly
no test coverage detected