revert changes to playmusic
This commit is contained in:
parent
7d2ff58f76
commit
dbe52c1658
@ -3571,11 +3571,11 @@ class GUI(QtGui.QWidget):
|
|||||||
if not mus.endswith(".mp3") and "===MUSIC START===.mp3" in self.musiclist: #vidya workaround
|
if not mus.endswith(".mp3") and "===MUSIC START===.mp3" in self.musiclist: #vidya workaround
|
||||||
mus += ".mp3"
|
mus += ".mp3"
|
||||||
musl = mus.lower()
|
musl = mus.lower()
|
||||||
musp = urllib.unquote(urlparse(musl).path)[1:]
|
#musp = urllib.unquote(urlparse(musl).path)[1:]
|
||||||
|
|
||||||
self.stopMusic()
|
self.stopMusic()
|
||||||
|
|
||||||
if exists(AOpath + 'sounds/music/' + musp):
|
if exists(AOpath + 'sounds/music/' + musl):
|
||||||
self.music = audio.loadhandle(False, AOpath + 'sounds/music/' + musl, 0, 0, BASS_SAMPLE_LOOP)
|
self.music = audio.loadhandle(False, AOpath + 'sounds/music/' + musl, 0, 0, BASS_SAMPLE_LOOP)
|
||||||
audio.sethandleattr(self.music, BASS_ATTRIB_VOL, self.musicslider.value() / 100.0)
|
audio.sethandleattr(self.music, BASS_ATTRIB_VOL, self.musicslider.value() / 100.0)
|
||||||
audio.playhandle(self.music, True)
|
audio.playhandle(self.music, True)
|
||||||
|
Loading…
Reference in New Issue
Block a user