I'm trying to do an FFT on live audio to see its spectrum.
So I have a sampling rate of 44100 Hz and from this take out 1024 bins on my FFT
So to test it I play a continuous tone at 15000 Hz and another one at 16000 Hz and look for it on my spectrum. I try to use higher ones to cut out noise from around. I have made the sound in a way there is no clipping
The thing is when I look at the individual frames of the FFT in each 2048 byte block of data I can see the peaks at these frequencies but some frames won't have the peaks, yet the others would.
How can this happen? How can I avoid it or what can I do to the way I'm reading the audio so that I can see the two tones in every frame?