Fixed a bug in RDCut::copyTo() where the segue gain was not copied.

This commit is contained in:
Patrick Linstruth 2019-01-30 17:47:42 -08:00
parent efa4999fa2
commit 75bab16887
3 changed files with 16 additions and 8 deletions

View File

@ -18436,3 +18436,6 @@
* Fixed a bug in the 'EditCut' web API call that caused attempts * Fixed a bug in the 'EditCut' web API call that caused attempts
to clear the 'START_DAYPART' and 'END_DAYPART' fields to return to clear the 'START_DAYPART' and 'END_DAYPART' fields to return
an error. an error.
2019-01-30 Patrick Linstruth <patrick@deltecent.com>
* Fixed a bug in RDCut::copyTo() where the segue gain was not
copied.

View File

@ -46,6 +46,9 @@ PLAY_GAIN int(11) signed In 1/100 dB
START_POINT int(10) unsigned Offset to Start point in ms START_POINT int(10) unsigned Offset to Start point in ms
FADEUP_POINT int(10) unsigned Offset to FadeUp point in ms FADEUP_POINT int(10) unsigned Offset to FadeUp point in ms
FADEDOWN_POINT int(10) unsigned Offset to FadeDown point in ms FADEDOWN_POINT int(10) unsigned Offset to FadeDown point in ms
SEGUE_START_POINT int(11)
SEGUE_END_POINT int(11)
SEGUE_GAIN int(11)
END_POINT int(10) unsigned Offset to End point in ms END_POINT int(10) unsigned Offset to End point in ms
HOOK_START_POINT int(10) unsigned Offset to Hook Start point in ms HOOK_START_POINT int(10) unsigned Offset to Hook Start point in ms
HOOK_END_POINT int(10) unsigned Offset to Hook End point in ms HOOK_END_POINT int(10) unsigned Offset to Hook End point in ms

View File

@ -882,10 +882,11 @@ bool RDCut::copyTo(RDStation *station,RDUser *user,
"FADEDOWN_POINT,"+ // 11 "FADEDOWN_POINT,"+ // 11
"SEGUE_START_POINT,"+ // 12 "SEGUE_START_POINT,"+ // 12
"SEGUE_END_POINT,"+ // 13 "SEGUE_END_POINT,"+ // 13
"HOOK_START_POINT,"+ // 14 "SEGUE_GAIN,"+ // 14
"HOOK_END_POINT,"+ // 15 "HOOK_START_POINT,"+ // 15
"TALK_START_POINT,"+ // 16 "HOOK_END_POINT,"+ // 16
"TALK_END_POINT "+ // 17 "TALK_START_POINT,"+ // 17
"TALK_END_POINT "+ // 18
"from CUTS where "+ "from CUTS where "+
"CUT_NAME=\""+RDEscapeString(cut_name)+"\""; "CUT_NAME=\""+RDEscapeString(cut_name)+"\"";
q=new RDSqlQuery(sql); q=new RDSqlQuery(sql);
@ -908,10 +909,11 @@ bool RDCut::copyTo(RDStation *station,RDUser *user,
QString().sprintf("FADEDOWN_POINT=%d,",q->value(11).toInt())+ QString().sprintf("FADEDOWN_POINT=%d,",q->value(11).toInt())+
QString().sprintf("SEGUE_START_POINT=%d,",q->value(12).toInt())+ QString().sprintf("SEGUE_START_POINT=%d,",q->value(12).toInt())+
QString().sprintf("SEGUE_END_POINT=%d,",q->value(13).toInt())+ QString().sprintf("SEGUE_END_POINT=%d,",q->value(13).toInt())+
QString().sprintf("HOOK_START_POINT=%d,",q->value(14).toInt())+ QString().sprintf("SEGUE_GAIN=%d,",q->value(14).toInt())+
QString().sprintf("HOOK_END_POINT=%d,",q->value(15).toInt())+ QString().sprintf("HOOK_START_POINT=%d,",q->value(15).toInt())+
QString().sprintf("TALK_START_POINT=%d,",q->value(16).toInt())+ QString().sprintf("HOOK_END_POINT=%d,",q->value(16).toInt())+
QString().sprintf("TALK_END_POINT=%d ",q->value(17).toInt())+ QString().sprintf("TALK_START_POINT=%d,",q->value(17).toInt())+
QString().sprintf("TALK_END_POINT=%d ",q->value(18).toInt())+
"where CUT_NAME=\""+RDEscapeString(cutname)+"\""; "where CUT_NAME=\""+RDEscapeString(cutname)+"\"";
} }
delete q; delete q;