Question

I have gone through different questions in SO for this, but couldnt get answer for this. How can I get 1024 fft bins from a data of 600 shorts audio buffer. If yes/no please explain.

Était-ce utile?

La solution

You can zero-pad your data by appending 424 zeros (shorts) to the data in your buffer (or perhaps prepending 212 zeros and postpending 212 zeros if you care about phase). This composite data vector of length 1024 will produce 1024 FFT result bins from an FFT of length 1024.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top