diff --git a/i_sndfile/i_sndfile.cpp b/i_sndfile/i_sndfile.cpp index c66281ad44f93ac7a5bc4ba50da0db1f7cfa5aa0..97ffc3cd387c3e8a8792009a9933ed8d133201c0 100644 --- a/i_sndfile/i_sndfile.cpp +++ b/i_sndfile/i_sndfile.cpp @@ -24,6 +24,7 @@ int main(int argc, char**argv){ blc_program_add_option(&samplerate_str, 'S', "samplerate", "integer", "frequency of sampling", "44100"); blc_program_add_option(&type_str, 't', "type", "INT8|FL32", "Type of the data.", "FL32"); blc_program_init(&argc, &argv, blc_quit); + blc_command_forward_blc_channels(); SSCANF(1, samplerate_str, "%d", &samplerate); diff --git a/o_sndfile/o_sndfile.cpp b/o_sndfile/o_sndfile.cpp index f1053c041d88647830c469d8f59f63664c655e81..87af16424d6ab880f44ee281c37560c58d941575 100644 --- a/o_sndfile/o_sndfile.cpp +++ b/o_sndfile/o_sndfile.cpp @@ -12,12 +12,13 @@ int main(int argc, char**argv){ sf_count_t write_items_nb; int samplerate, length; - blc_program_set_description("Load a sound file (no mp3) and put the result in the blc_channel"); - blc_program_add_option(&filename, 'f', "file", "string", "filename of the file to write", NULL); + blc_program_set_description("Save the data from blc_channel in a sound file (wav, ogg, ...)"); + blc_program_add_option(&filename, 'f', "file", "filename", "filename of the file to write", NULL); blc_program_add_option(&output_length_str, 's', "size", "integer", "items nb in buffer", "4096"); blc_program_add_option(&samplerate_str, 'S', "samplerate", "integer", "frequency of sampling", "44100"); - blc_program_add_parameter(&input_name, "blc_channel-in", 1, "blc channel containing the sound", NULL); + blc_program_add_parameter(&input_name, "blc_channel-in", 1, "blc channel containing the sound to record", NULL); blc_program_init(&argc, &argv, blc_quit); + blc_command_forward_blc_channels(); SSCANF(1, samplerate_str, "%d", &samplerate); SSCANF(1, output_length_str, "%d", &length);