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.

Was it helpful?

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top