void ATrack::set_default_title()
{
- Track *current = ListItem<Track>::owner->first;
+ Track *current = ListItem<Track>::list->first;
int i;
for(i = 0; current; current = NEXT)
{
int64_t ATrack::to_units(double position, int round)
{
- if(round)
- return Units::round(position * edl->session->sample_rate);
- else
- return Units::to_int64(position * edl->session->sample_rate);
+ return round ? Units::round(position * edl->session->sample_rate) :
+ Units::to_int64(position * edl->session->sample_rate + 1e-6);
}
double ATrack::to_doubleunits(double position)