I switched to NAudio and now FFT works. However, I could find a reason (I probably won't try to repeat the test): when I created an array of double numbers to feed into the FFT function, I did something like:
for (int i = 0; i < buffer.Length; i+= sizeof(short))
{
samples[i] = ReadSample(buffer, i);
}
For reference, "samples" is the double entry [] for fft, ReadSample is what takes care of the small / large endian. I can’t remember right now how the code was, but it missed every odd pattern.
, , , , .
, , , .