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

void ImageFrameSocketHandler::send_imageframe_view_position_change ( nframes_t  pos,
void *  src,
ImageFrameView item 
)

Send an Image Frame 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 534 of file imageframe_socket_handler.cc.

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

Referenced by handle_insert_imageframe_view().

{
      // ENSURE_GUI_THREAD(bind (mem_fun(*this, &ImageFrameSocketHandler::send_imageframe_view_position_change), pos, src, item));
      
      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::IMAGEFRAME_ITEM << ardourvis::POSITION_CHANGE ;
      
      // add the item description
      this->compose_imageframe_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