Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)

            @staticmethod
    def send(event, **kwargs):
        """Helper to allow calling of audio listener events"""
        listener.send_async(AudioListener, event, **kwargs)
        


src/p/i/Pi-MusicBox-HEAD/filechanges/opt/musicbox/audio/actor.py   Pi-MusicBox(Download)
            old_state, new_state)
        AudioListener.send(
            'state_changed', old_state=old_state, new_state=new_state)
 
    def _on_end_of_stream(self):
        logger.debug('Triggering reached_end_of_stream event')
        AudioListener.send('reached_end_of_stream')

src/m/o/Mopidy-0.18.3/mopidy/audio/actor.py   Mopidy(Download)
            old_state, new_state)
        AudioListener.send(
            'state_changed', old_state=old_state, new_state=new_state)
 
    def _on_end_of_stream(self):
        logger.debug('Triggering reached_end_of_stream event')
        AudioListener.send('reached_end_of_stream')

src/m/o/Mopidy-0.18.3/mopidy/audio/dummy.py   Mopidy(Download)
    def _change_state(self, new_state):
        old_state, self.state = self.state, new_state
        AudioListener.send(
            'state_changed', old_state=old_state, new_state=new_state)
        return True

src/m/o/mopidy-HEAD/mopidy/audio/dummy.py   mopidy(Download)
    def _change_state(self, new_state):
        old_state, self.state = self.state, new_state
        AudioListener.send(
            'state_changed', old_state=old_state, new_state=new_state)
        return True