Пример #1
0
 def fastForward(self):
     if self.rewindFlag == 0 and self.moveTempo < 500.0 and pybass.BASS_ChannelIsActive(
             self.handle) == pybass.BASS_ACTIVE_PLAYING:
         self.moveTempo += 50.0
         if pybass.BASS_ChannelSetAttribute(self.handle,
                                            bass_fx.BASS_ATTRIB_TEMPO,
                                            self.moveTempo):
             self.fastForwardFlag = 1
         else:
             self.moveTempo = 0.0
     elif self.rewindFlag == 1 and pybass.BASS_ChannelIsActive(
             self.handle) == pybass.BASS_ACTIVE_PLAYING:
         self.fastMoveReset()
Пример #2
0
 def rewind(self):
     if self.fastForwardFlag == 0 and pybass.BASS_ChannelIsActive(
             self.handle) == pybass.BASS_ACTIVE_PLAYING:
         if pybass.BASS_ChannelSetAttribute(self.reverseHandle,
                                            bass_fx.BASS_ATTRIB_REVERSE_DIR,
                                            bass_fx.BASS_FX_RVS_REVERSE):
             self.rewindFlag = 1
             if self.moveTempo < 500.0:
                 self.moveTempo += 50.0
                 pybass.BASS_ChannelSetAttribute(self.handle,
                                                 bass_fx.BASS_ATTRIB_TEMPO,
                                                 self.moveTempo)
     elif self.fastForwardFlag == 1 and pybass.BASS_ChannelIsActive(
             self.handle) == pybass.BASS_ACTIVE_PLAYING:
         self.fastMoveReset()
Пример #3
0
 def getChannelState(self):
     bassCode = pybass.BASS_ChannelIsActive(self.handle)
     if bassCode == pybass.BASS_ACTIVE_PLAYING:
         return 0
     elif bassCode == pybass.BASS_ACTIVE_PAUSED:
         return 1
     elif bassCode == pybass.BASS_ACTIVE_PAUSED_DEVICE:
         return 4
     else:
         if self.handle == 0:
             return 3
         else:
             return 2