mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-11 23:25:57 +01:00
2019-02-19 Fred Gleason <fredg@paravelsystems.com>
* Modified the PAD emission code to use a hybrid "most recently started" / "longest running" strategy.
This commit is contained in:
@@ -18496,3 +18496,6 @@
|
|||||||
2019-02-19 Patrick Linstruth <patrick@deltecent.com>
|
2019-02-19 Patrick Linstruth <patrick@deltecent.com>
|
||||||
* Add non-contiguous cart selections in RDListView class.
|
* Add non-contiguous cart selections in RDListView class.
|
||||||
* Allow non-contiguous cart selections in rdlibrary(1).
|
* Allow non-contiguous cart selections in rdlibrary(1).
|
||||||
|
2019-02-19 Fred Gleason <fredg@paravelsystems.com>
|
||||||
|
* Modified the PAD emission code to use a hybrid "most recently
|
||||||
|
started" / "longest running" strategy.
|
||||||
|
|||||||
@@ -2887,12 +2887,32 @@ void RDLogPlay::SendNowNext()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
/*
|
||||||
//
|
//
|
||||||
// "Most recently started" algorithm
|
// "Most recently started" algorithm
|
||||||
//
|
//
|
||||||
if(running>0) {
|
if(running>0) {
|
||||||
now_line=lines[running-1];
|
now_line=lines[running-1]; // Most recently started event
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
//
|
||||||
|
// "Hybrid" algorithm
|
||||||
|
//
|
||||||
|
if(running>0) {
|
||||||
|
now_line=lines[running-1]; // Most recently started event
|
||||||
|
if((!logLine(now_line)->nowNextEnabled())||(logLine(now_line)->cartType()!=RDCart::Macro)) {
|
||||||
|
//
|
||||||
|
// If the most recently started event is not a Now&Next-enabled macro
|
||||||
|
// cart, then use longest running event instead
|
||||||
|
//
|
||||||
|
for(int i=0;i<running;i++) {
|
||||||
|
if((time=logLine(lines[i])->startTime(RDLogLine::Actual).
|
||||||
|
addMSecs(logLine(lines[i])->effectiveLength()))>end_time) {
|
||||||
|
end_time=time;
|
||||||
|
now_line=lines[i];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if((now_line>=0)&&(logLine(now_line)->nowNextEnabled())) {
|
if((now_line>=0)&&(logLine(now_line)->nowNextEnabled())) {
|
||||||
|
|||||||
Reference in New Issue
Block a user