Logo Search packages:      
Sourcecode: ardour version File versions

void ImageFrameSocketHandler::send_marker_view_duration_change ( nframes_t  dur,
void *  src,
MarkerView item 
)

Send a Marker View item duration changed message

Parameters:
dur the new duration value
src the identity of the object that initiated the change
item the time axis item whos position has changed

Definition at line 713 of file imageframe_socket_handler.cc.

References compose_marker_item_desc(), read_result(), and send_message().

{
      if(this == src || src == 0)
      {
            return ;
      }
      
      // create a message buffer
      std::ostringstream msgBuffer ;
      msgBuffer << std::setfill('0') ;
      
      // add the msg type
      msgBuffer << ardourvis::ITEM_UPDATE << ardourvis::MARKER_ITEM << ardourvis::DURATION_CHANGE ;
      
      this->compose_marker_item_desc(item, msgBuffer) ;

      msgBuffer << std::setw(ardourvis::TIME_VALUE_CHARS) << dur ;
      
      send_message(msgBuffer.str()) ;

      // XXX should do something with the return
      read_result();
}     


Generated by  Doxygen 1.6.0   Back to index