avfilter/avf_showspectrum: use ff_generate_window_func