Added properties for changing volume in the player dialogue
This commit is contained in:
parent
f7490a7a35
commit
5b487c737d
@ -40,7 +40,8 @@ class audioPlayer(object):
|
|||||||
|
|
||||||
@volume.setter
|
@volume.setter
|
||||||
def volume(self, vol):
|
def volume(self, vol):
|
||||||
|
if vol <= 100 and vol >= 0:
|
||||||
self.vol = vol
|
self.vol = vol
|
||||||
if self.stream != None:
|
if self.stream != None:
|
||||||
self.stream.volume = vol/100.0
|
self.stream.volume = self.vol/100.0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user