Logo Search packages:      
Sourcecode: ardour version File versions  Download package

void ImageFrameSocketHandler::handle_imageframe_view_min_duration_update ( const char *  msg  )  [private]

Handle ImageFrameView Minimum Duration changes

Parameters:
msg the received message

Definition at line 1891 of file imageframe_socket_handler.cc.

References decompose_imageframe_item_desc(), get_imageframe_view_from_desc(), get_message_part(), send_return_failure(), send_return_success(), and TimeAxisViewItem::set_min_duration().

Referenced by handle_item_update_message().

{
      int position = 6 ; // message type chars
      
      std::string track_id ;
      std::string group_id ;
      std::string item_id ;
      int track_id_size ;
      int group_id_size ;
      int item_id_size ;
      
      this->decompose_imageframe_item_desc(msg, position, track_id, track_id_size, group_id, group_id_size, item_id, item_id_size) ;
      
      nframes_t min_duration = strtoul(get_message_part(position,ardourvis::TIME_VALUE_CHARS,msg).c_str(),0,10) ;
      position += ardourvis::TIME_VALUE_CHARS ;
      
      int errcode ;
      std::string errmsg ;
      ImageFrameView* ifv = get_imageframe_view_from_desc(track_id, group_id, item_id, errcode, errmsg) ;
      if(ifv)
      {
            ifv->set_min_duration(min_duration, this) ;
            send_return_success() ;
      }
      else
      {
            send_return_failure(errmsg) ;
      }
}


Generated by  Doxygen 1.6.0   Back to index