Logo Search packages:      
Sourcecode: ardour version File versions

void ImageFrameTimeAxisView::set_imageframe_duration_sec ( double  sec  ) 

Sets the duration of the selected ImageFrameView to the specified number of seconds

Parameters:
sec the duration to set the ImageFrameView to, in seconds

Definition at line 409 of file imageframe_time_axis_view.cc.

References TimeAxisView::editor, selected_imageframe_group, selected_imageframe_view, and ImageFrameView::set_duration().

Referenced by ImageFrameTimeAxis::create_imageframe_menu().

{
      if(selected_imageframe_group && selected_imageframe_view)
      {
            selected_imageframe_view->set_duration((nframes_t) (sec * _trackview.editor.current_session()->frame_rate()), this) ;
      }
}


Generated by  Doxygen 1.6.0   Back to index