Fixed an error raised when there were attempts to set volume before the URL Player has played something
This commit is contained in:
parent
a53a3d595c
commit
cbcc6f812a
@ -1,5 +1,4 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
from __future__ import unicode_literals
|
|
||||||
import sys
|
import sys
|
||||||
import random
|
import random
|
||||||
import output
|
import output
|
||||||
@ -95,7 +94,6 @@ class audioPlayer(object):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def volume(self):
|
def volume(self):
|
||||||
if self.stream != None:
|
|
||||||
return self.vol
|
return self.vol
|
||||||
|
|
||||||
@volume.setter
|
@volume.setter
|
||||||
|
Loading…
Reference in New Issue
Block a user