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

def Project::Project::play (   self,
  movePlayhead = True 
)

Set all instruments playing

Definition at line 322 of file Project.py.

00322                                          :
            '''Set all instruments playing'''
            
            if len(self.instruments) > 0:
                  gst.debug("Play pressed, about to set state to PLAYING")
                  
                  # And set it going
                  self.state_id = self.bus.connect("message::state-changed", self.state_changed, movePlayhead)
                  #set to PAUSED so the transport manager can seek first (if needed)
                  #the pipeline will be set to PLAY by self.state_changed()
                  self.mainpipeline.set_state(gst.STATE_PAUSED)
                  
                  gst.debug("just set state to PLAYING")

                  # [DEBUG]
                  # This debug block will be removed when we release. If you see this in a release version, we
                  # obviously suck. Please email us and tell us about how shit we are.
                  try:
                        if os.environ['JOKOSHER_DEBUG']:
                              print "Play Pipeline:"
                              self.debug.ShowPipelineTree(self.mainpipeline)
                  except:
                        pass
                  # [/DEBUG]

      #_____________________________________________________________________

      def bus_message(self, bus, message):


Generated by  Doxygen 1.6.0   Back to index