mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-07-30 16:29:15 +02:00
fix
This commit is contained in:
+2
-2
@@ -104,7 +104,7 @@ void show_help(char *name) {
|
|||||||
"\t-d,--mpx_dev\tSet the MPX deviation [default: %.1f]\n"
|
"\t-d,--mpx_dev\tSet the MPX deviation [default: %.1f]\n"
|
||||||
"\t-A,--master_vol\tSet master volume [default: %.3f]\n"
|
"\t-A,--master_vol\tSet master volume [default: %.3f]\n"
|
||||||
"\t-v,--audio_vol\tSet audio volume [default: %.3f]\n"
|
"\t-v,--audio_vol\tSet audio volume [default: %.3f]\n"
|
||||||
"\t-D,--deviation\tSet audio volume, but with the deviation (100%% being 75000) [default: %d]\n"
|
"\t-D,--deviation\tSet audio volume, but with the deviation (100%% being 75000) [default: %.1f]\n"
|
||||||
,name
|
,name
|
||||||
,DEFAULT_STEREO
|
,DEFAULT_STEREO
|
||||||
,INPUT_DEVICE
|
,INPUT_DEVICE
|
||||||
@@ -253,7 +253,7 @@ int main(int argc, char **argv) {
|
|||||||
audio_volume = strtof(optarg, NULL);
|
audio_volume = strtof(optarg, NULL);
|
||||||
break;
|
break;
|
||||||
case 'D': // Deviation
|
case 'D': // Deviation
|
||||||
master_volume *= ((float)atoi(optarg)/75000.0f);
|
master_volume *= (strtof(optarg, NULL)/75000.0f);
|
||||||
break;
|
break;
|
||||||
case 'h':
|
case 'h':
|
||||||
show_help(argv[0]);
|
show_help(argv[0]);
|
||||||
|
|||||||
Reference in New Issue
Block a user