Modify audio player volume by 2% instead of 5%
This commit is contained in:
@@ -98,6 +98,10 @@ class audioPlayer(object):
|
||||
def volume(self, vol):
|
||||
if vol <= 100 and vol >= 0:
|
||||
self.vol = vol
|
||||
elif vol < 0:
|
||||
self.vol = 0
|
||||
elif vol > 100:
|
||||
self.vol = 100
|
||||
if self.stream != None:
|
||||
self.stream.volume = self.vol/100.0
|
||||
|
||||
|
Reference in New Issue
Block a user