blc_program_add_option(&output_name,'o',"output","string","Channel containing the fast fourier transformation",DEFAULT_OUTPUT_NAME);
blc_program_add_option(&display,'d',"display",NULL,"Display the result as text graph",NULL);
blc_program_add_option(&option_record,'e',"export","filename","export data on file in parameter",NULL);
blc_program_add_option(&period_str,'p',"period","integer","Period in ms (0 as fast as possible). No effect if input synchro.","100");
blc_program_add_option(&output_name,'o',"output","blc_channel|-","channel containing the fast fourier transformation, or '-' for terminal output",DEFAULT_OUTPUT_NAME);
blc_program_add_option(&period_str,'p',"period","integer","Period in ms (0 as fast as possible).","0");
blc_program_add_option(&spectrum_option,'s',"spectrum",NULL,"Get the square value of the fftw signal",NULL);
blc_program_add_parameter(&input_name,"input blc_channel",1,"Channel containing the sound data",NULL);
blc_program_init(&argc,&argv,NULL);
SSCANF(1,period_str,"%d",&period);
//Open input channel and check the type of values
input.open(input_name,BLC_CHANNEL_READ);
if(input.type!='FL32')EXIT_ON_CHANNEL_ERROR(&input,"Input must be of type 'FL32'");