I wrote a program that would take an audio file and process it. I wrote a shell script which used 'brec' to record users voice data and store it to a file. brec takes the filename.wav as an commnand line argument..
$brec -s 16000 -t 5 -b 16 -w filename.wav
this command took input data from mic and wrote it to filename.wav. Later in the script I used the filename.wav as a command line argument for my program which would process it.
Now I want to build a gui for this. I thought of putting a button called 'record'. The callback function for 'clicked' event of this button would invoke the 'brec' binary. Can I pass command line arguments from the callback function. Can I use brec from the callback function??
I am using c with glade-2.