FFT calculation suitable, Wav File, Java
To show only one spectrum then FFT of the whole sample could be done.But for better result you could take a window and take FFT. For taking windows of 4096 with 50% overlap then it is equivalent to doing FFT
no of times
$$
\frac{480000}{4096*0.5}
$$
times that is equivalent to
$$
\frac{Total\hspace{1mm} sample\hspace{1mm} length}{(window \hspace{1mm}length)*(amount\hspace{1mm} of\hspace{1mm} overlap)}
$$