コード例 #1
0
 def GetPos(self):
     # Use the default GetPos() which simply checks the time
     # since we started playing. This does not take account
     # for any fast-forward/rewind that may occur in the
     # external player, but we cannot support getting the
     # song position from arbitrary user-supplied players.
     return pykPlayer.GetPos(self)
コード例 #2
0
ファイル: pycdg.py プロジェクト: ishegatron/pykaraoke
 def GetPos(self):
     if self.soundFileData:
         return pygame.mixer.music.get_pos()
     else:
         return pykPlayer.GetPos(self)
コード例 #3
0
ファイル: pykar.py プロジェクト: thiagohersan/SDR
 def GetPos(self):
     if self.useMidiTimer:
         return pygame.mixer.music.get_pos()
     else:
         return pykPlayer.GetPos(self)