Вопрос

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.

Это было полезно?

Решение

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.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top