mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-06-02 09:02:34 +02:00
2017-09-20 Fred Gleason <fredg@paravelsystems.com>
* Added a '--to-mono' option to rdimport(1).
This commit is contained in:
parent
990d50cf29
commit
b24d298d1e
@ -16030,3 +16030,5 @@
|
||||
to be truncated.
|
||||
2017-09-20 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Fixed a formatting bobble in 'web/rdxport/rdxport.cpp'.
|
||||
2017-09-20 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Added a '--to-mono' option to rdimport(1).
|
||||
|
@ -739,6 +739,18 @@
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>--to-mono</option>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Import the file as a monaural cut. If the file is stereo, both
|
||||
left and right channels will be mixed together.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>--use-cartchunk-cutid</option>
|
||||
|
@ -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");
|
||||
}
|
||||
|
@ -87,6 +87,7 @@ class MainObject : public QObject
|
||||
RDUser *import_user;
|
||||
bool import_verbose;
|
||||
bool import_log_mode;
|
||||
bool import_to_mono;
|
||||
bool import_use_cartchunk_cutid;
|
||||
int import_cart_number_offset;
|
||||
bool import_single_cart;
|
||||
|
Loading…
x
Reference in New Issue
Block a user