From d0e5947589c99919422ebe68ebff5a0c3e1591fa Mon Sep 17 00:00:00 2001 From: Arnaud Blanchard <arnaud.blanchard@ensea.fr> Date: Fri, 23 Feb 2018 15:54:34 +0100 Subject: [PATCH] Fix warning and documentation --- i_sndfile/i_sndfile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/i_sndfile/i_sndfile.cpp b/i_sndfile/i_sndfile.cpp index 97ffc3c..c579956 100644 --- a/i_sndfile/i_sndfile.cpp +++ b/i_sndfile/i_sndfile.cpp @@ -18,7 +18,7 @@ int main(int argc, char**argv){ blc_program_set_description("Record blc_channel input in a sound file"); blc_program_add_option(&filename, 'f', "file", "string", "filename of the file to write", NULL); - blc_program_add_option(&output_name, 'o', "output", "string", "Channel containing the fast fourier transformation", DEFAULT_OUTPUT_NAME); + blc_program_add_option(&output_name, 'o', "output", "string", "Channel where to put the sound", DEFAULT_OUTPUT_NAME); blc_program_add_option(&period_str, 'p', "period", "integer", "Period between each sample in ms (0 as fast as possible)", "0"); blc_program_add_option(&length_str, 's', "size", "integer", "Sample size", "4096"); blc_program_add_option(&samplerate_str, 'S', "samplerate", "integer", "frequency of sampling", "44100"); @@ -53,7 +53,7 @@ int main(int argc, char**argv){ BLC_COMMAND_LOOP(period*1000){ read_items_nb=sf_read_float(sndfile, output.floats, output.total_length); if (read_items_nb!=output.total_length) { - color_eprintf(BLC_YELLOW, "%s: Iteration %d: Missing data. Read '%lld' items instead of '%ld'. It is probably the end of the file\n", blc_program_name, blc_loop_iteration, read_items_nb, output.total_length); + color_eprintf(BLC_YELLOW, "%s: Iteration %llu: Missing data. Read '%lld' items instead of '%ld'. It is probably the end of the file\n", blc_program_name, blc_loop_iteration, read_items_nb, output.total_length); blc_command_ask_quit(); break; } -- GitLab