| 26 | // -------------------------------------------------------------------------------------------------------------------- |
| 27 | |
| 28 | ImpulseResponse::ImpulseResponse(float duration, |
| 29 | int order, |
| 30 | int samplingRate) |
| 31 | { |
| 32 | mData.resize(SphericalHarmonics::numCoeffsForOrder(order), static_cast<int>(ceilf(duration * samplingRate))); |
| 33 | reset(); |
| 34 | } |
| 35 | |
| 36 | void ImpulseResponse::reset() |
| 37 | { |