From a83be22acbfc686a6cbf4cc172c4a444fd71ef08 Mon Sep 17 00:00:00 2001 From: Arnaud Blanchard <arnaud.blanchard@ensea.fr> Date: Sun, 17 Sep 2017 17:11:14 +0200 Subject: [PATCH] Add compatibility with Postfixed Polish Notation --- i_sndfile/i_sndfile.cpp | 1 + o_sndfile/o_sndfile.cpp | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/i_sndfile/i_sndfile.cpp b/i_sndfile/i_sndfile.cpp index c66281a..97ffc3c 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 f1053c0..87af164 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); -- GitLab