| 226 | } |
| 227 | |
| 228 | const FLOAT_DMEM * cSmileUtilWindowedMagnitudeSpectrum::getMagnitudes( |
| 229 | const FLOAT_DMEM *in, long Nin, bool allowWinSmaller = false) |
| 230 | { |
| 231 | copyInputAndZeropad(in, Nin, allowWinSmaller); |
| 232 | doFFT(); |
| 233 | computeMagnitudes(); |
| 234 | // TODO: convert fftWork to right pointer type upon return!!!! |
| 235 | // This is a temp hack to make the compiler happy, but it breaks the compontnt!! |
| 236 | return (FLOAT_DMEM*)fftWork_; |
| 237 | } |
| 238 | |
| 239 | ///////////////////////////////////////////////////////// |
| 240 | cSmileUtilMappedMagnitudeSpectrum::cSmileUtilMappedMagnitudeSpectrum(long Nin, |