FloatAuto *previous = 0;
FloatAuto *next = 0;
FloatAutos *speed_autos = (FloatAutos*)track->automation->autos[AUTOMATION_SPEED];
- speed_position += speed_autos->automation_intergal(edit_startproject,
+ speed_position += speed_autos->automation_integral(edit_startproject,
start_project-edit_startproject, PLAY_FORWARD);
speed_position1 = speed_position;
}
}
-double FloatAutos::automation_intergal(int64_t start, int64_t length, int direction)
+double FloatAutos::automation_integral(int64_t start, int64_t length, int direction)
{
if( direction == PLAY_REVERSE )
start -= length;
int64_t unit_end);
void set_automation_mode(int64_t start, int64_t end, int mode);
- double automation_intergal(int64_t start, int64_t length, int direction);
+ double automation_integral(int64_t start, int64_t length, int direction);
void dump();
Auto* new_auto();
// integrate position from start of edit.
double speed_position = edit_startsource;
FloatAutos *speed_autos = (FloatAutos*)track->automation->autos[AUTOMATION_SPEED];
- speed_position += speed_autos->automation_intergal(edit_startproject,
+ speed_position += speed_autos->automation_integral(edit_startproject,
direction_position-edit_startproject, PLAY_FORWARD);
//printf("VModule::import_frame %d %lld %lld\n", __LINE__, position, (int64_t)speed_position);
position = (int64_t)speed_position;
if( clipboard_num < CLIP_BUFFER0 ) {
char *bfr = data_buffer[clipboard_num];
- if( data_length[clipboard_num] != len+1 ) {
- delete [] bfr; bfr = new char[len+1];
+ if( data_length[clipboard_num] != len ) {
+ delete [] bfr; bfr = new char[len];
data_buffer[clipboard_num] = bfr;
- data_length[clipboard_num] = len+1;
+ data_length[clipboard_num] = len;
}
memcpy(bfr, data, len);
- bfr[len] = 0;
Atom selection = clipboard_num == CLIP_PRIMARY ? xa_primary : clipboard;
// this is not supposed to be necessary according to the man page
Window cur = XGetSelectionOwner(out_display, selection);