From 75bab16887529ab97d8170bf9540b5f14eafa2ae Mon Sep 17 00:00:00 2001 From: Patrick Linstruth Date: Wed, 30 Jan 2019 17:47:42 -0800 Subject: [PATCH] Fixed a bug in RDCut::copyTo() where the segue gain was not copied. --- ChangeLog | 3 +++ docs/tables/cuts.txt | 3 +++ lib/rdcut.cpp | 18 ++++++++++-------- 3 files changed, 16 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7b33af10..9ea78fdd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -18436,3 +18436,6 @@ * Fixed a bug in the 'EditCut' web API call that caused attempts to clear the 'START_DAYPART' and 'END_DAYPART' fields to return an error. +2019-01-30 Patrick Linstruth + * Fixed a bug in RDCut::copyTo() where the segue gain was not + copied. diff --git a/docs/tables/cuts.txt b/docs/tables/cuts.txt index 1960cbd8..24098987 100644 --- a/docs/tables/cuts.txt +++ b/docs/tables/cuts.txt @@ -46,6 +46,9 @@ PLAY_GAIN int(11) signed In 1/100 dB START_POINT int(10) unsigned Offset to Start 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 +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 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 diff --git a/lib/rdcut.cpp b/lib/rdcut.cpp index 266955d4..2ae49d30 100644 --- a/lib/rdcut.cpp +++ b/lib/rdcut.cpp @@ -882,10 +882,11 @@ bool RDCut::copyTo(RDStation *station,RDUser *user, "FADEDOWN_POINT,"+ // 11 "SEGUE_START_POINT,"+ // 12 "SEGUE_END_POINT,"+ // 13 - "HOOK_START_POINT,"+ // 14 - "HOOK_END_POINT,"+ // 15 - "TALK_START_POINT,"+ // 16 - "TALK_END_POINT "+ // 17 + "SEGUE_GAIN,"+ // 14 + "HOOK_START_POINT,"+ // 15 + "HOOK_END_POINT,"+ // 16 + "TALK_START_POINT,"+ // 17 + "TALK_END_POINT "+ // 18 "from CUTS where "+ "CUT_NAME=\""+RDEscapeString(cut_name)+"\""; 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("SEGUE_START_POINT=%d,",q->value(12).toInt())+ QString().sprintf("SEGUE_END_POINT=%d,",q->value(13).toInt())+ - QString().sprintf("HOOK_START_POINT=%d,",q->value(14).toInt())+ - QString().sprintf("HOOK_END_POINT=%d,",q->value(15).toInt())+ - QString().sprintf("TALK_START_POINT=%d,",q->value(16).toInt())+ - QString().sprintf("TALK_END_POINT=%d ",q->value(17).toInt())+ + QString().sprintf("SEGUE_GAIN=%d,",q->value(14).toInt())+ + QString().sprintf("HOOK_START_POINT=%d,",q->value(15).toInt())+ + QString().sprintf("HOOK_END_POINT=%d,",q->value(16).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)+"\""; } delete q;