Logo Search packages:      
Sourcecode: ardour version File versions

void ImageFrameSocketHandler::send_imageframe_view_duration_change ( nframes_t  dur,
void *  src,
ImageFrameView item 
)

Send a Image Frame View item duration changed message

Parameters:
dur the the new duration value
src the identity of the object that initiated the change
item the item which has had a duration change

Definition at line 569 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_duration_change), dur, 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::DURATION_CHANGE ;
      
      this->compose_imageframe_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