Domanda

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.

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top