Re: [tuxdroid-user] cvoicecontrol: strace microphone_config
Status: Beta
Brought to you by:
ks156
From: Florent T. <ft...@gm...> - 2007-03-28 20:52:44
|
It seems that the config file is the main problem, so when we get a working config file, we shall finally evaluate cvoice control. In microphone_config.c: 1153 /***** output configuration information to config file */ fprintf(f, "Mixer Device = %s\n", getMixer()); fprintf(f, "Audio Device = %s\n", getAudio()); fprintf(f, "Mic Level = %d\n", mic_level); fprintf(f, "IGain Level = %d\n", igain_level); fprintf(f, "Record Level = %d\n", rec_level); fprintf(f, "Stop Level = %d\n", stop_level); fprintf(f, "Silence Level = %d\n", silence_level); fprintf(f, "Channel Mean ="); for (i = 0; i < FEAT_VEC_SIZE; i++) fprintf(f, " %6.5f", channel_mean[i]); fprintf(f, "\n"); fclose(f); Maybe the method used to open the file / write into it is too old, and should be reimplemented. As we can see here, the file is pretty simple. Options: - find an existing config file and adjust it by hand - debug the program to find the stored values before writing and handwrite - rewrite the storing procedure |