コード例 #1
0
 def __init__(self, mic):
     super(NetEaseWrapper, self).__init__()
     self.cond = threading.Condition() 
     self.netease = NetEaseApi.NetEase()
     self.mic = mic
     self.userId = 33120312
     self.volume = 0.5
     self.song = None  # 正在播放的曲目信息
     self.idx = -1  # 正在播放的曲目序号
     self.random = False
     self.playlist = []
コード例 #2
0
 def __init__(self, mic, profile):
     super(NetEaseWrapper, self).__init__()
     self.cond = threading.Condition()
     self.netease = NetEaseApi.NetEase()
     self.mic = mic
     self.profile = profile
     self.userId = ""
     self.volume = 0.7
     self.song = None  # 正在播放的曲目信息
     self.idx = -1  # 正在播放的曲目序号
     self.random = False
     self.playlist = []
     self.is_pause = False
     self.is_stop = False
コード例 #3
0
 def __init__(self):
     self.netease = NetEaseApi.NetEase()
     pygame.mixer.init()
     self.volume = 0.3
     pygame.mixer.music.set_volume(self.volume)
     self.download_path = 'music\\'