Added properties for changing volume in the player dialogue

This commit is contained in:
Manuel Cortez 2016-02-15 05:42:50 -06:00
parent f7490a7a35
commit 5b487c737d

View File

@ -40,7 +40,8 @@ class audioPlayer(object):
@volume.setter @volume.setter
def volume(self, vol): def volume(self, vol):
self.vol = vol if vol <= 100 and vol >= 0:
self.vol = vol
if self.stream != None: if self.stream != None:
self.stream.volume = vol/100.0 self.stream.volume = self.vol/100.0