Logo Search packages:      
Sourcecode: ardour version File versions

void ImageFrameSocketHandler::send_marker_view_position_change ( nframes_t  pos,
void *  src,
MarkerView item 
)

Send a Marker View Item position changed message

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

Definition at line 680 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::POSITION_CHANGE ;
      
      // add the item description
      this->compose_marker_item_desc(item, msgBuffer) ;

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

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


Generated by  Doxygen 1.6.0   Back to index