2017-08-28 Fred Gleason <fredg@paravelsystems.com>

* Added verbose messages for non-audio events to rdrender(1).
This commit is contained in:
Fred Gleason
2017-08-28 11:14:49 -04:00
parent 3abb23a77a
commit b29c91daa5
6 changed files with 83 additions and 10 deletions

View File

@@ -36,6 +36,7 @@ int MainObject::MainLoop()
float *pcm=NULL;
QTime current_time=render_start_time;
// QDate current_date=render_start_date;
QString warnings="";
//
// Open Endpoints
@@ -76,16 +77,15 @@ int MainObject::MainLoop()
// Iterate through it
//
for(unsigned i=0;i<lls.size();i++) {
if((lls.at(i)->transType()==RDLogLine::Stop)&&
(lls.at(i)->timeType()!=RDLogLine::Hard)) {
Verbose(current_time,i,QString().sprintf("Unconditional STOP on %06u [",
lls.at(i)->cartNumber())+
lls.at(i)->title()+"]");
if(lls.at(i)->transType()==RDLogLine::Stop) {
Verbose(current_time,i,"STOP "+lls.at(i)->summary());
warnings+=
QString().sprintf("log render halted at line %d due to STOP\n",i);
break;
}
if(lls.at(i)->open(current_time)) {
Verbose(current_time,i,
QString().sprintf("starting cart %06u [",lls.at(i)->cartNumber())+
Verbose(current_time,i,RDLogLine::transText(lls.at(i)->transType())+
QString().sprintf(" cart %06u [",lls.at(i)->cartNumber())+
lls.at(i)->title()+"]");
sf_count_t frames=0;
if((lls.at(i+1)->transType()==RDLogLine::Segue)&&
@@ -113,8 +113,26 @@ int MainObject::MainLoop()
pcm=NULL;
lls.at(i)->setRamp(lls.at(i+1)->transType());
}
else {
if(i<(lls.size()-1)) {
if(lls.at(i)->type()==RDLogLine::Cart) {
Verbose(current_time,i,"unable to start "+lls.at(i)->summary()+
" (NO AUDIO AVAILABLE)");
warnings+=
lls.at(i)->summary()+QString().
sprintf("at line %d failed to play (NO AUDIO AVAILABLE)\n",i);
}
else {
Verbose(current_time,i,"SKIP "+lls.at(i)->summary());
}
}
else {
Verbose(current_time,lls.size()-1,"--- end of log ---");
}
}
}
Verbose(current_time,lls.size()-1,"--- end of log ---");
fprintf(stderr,"%s",(const char *)warnings);
fflush(stderr);
//
// Clean up