2017-09-20 Fred Gleason <fredg@paravelsystems.com>

* Added a '--to-mono' option to rdimport(1).
This commit is contained in:
Fred Gleason
2017-09-20 11:29:56 -04:00
parent 990d50cf29
commit b24d298d1e
4 changed files with 28 additions and 0 deletions

View File

@@ -90,6 +90,7 @@ MainObject::MainObject(QObject *parent)
import_clear_datetimes=false;
import_clear_dayparts=false;
import_xml=false;
import_to_mono=false;
//
// Read Command Options
@@ -254,6 +255,9 @@ MainObject::MainObject(QObject *parent)
exit(256);
}
}
if(import_cmd->key(i)=="--to-mono") {
import_to_mono=true;
}
if(import_cmd->key(i)=="--clear-daypart-times") {
import_clear_dayparts=true;
import_cmd->setProcessed(i,true);
@@ -567,6 +571,9 @@ MainObject::MainObject(QObject *parent)
import_single_cart=true;
}
}
if(import_to_mono) {
import_channels=1;
}
//
// Print Status Messages
@@ -584,6 +591,12 @@ MainObject::MainObject(QObject *parent)
else {
printf(" Log mode is OFF\n");
}
if(import_to_mono) {
printf(" Force to Mono is ON\n");
}
else {
printf(" Force to Mono is OFF\n");
}
if(import_normalization_level==0) {
printf(" Normalization is OFF\n");
}