mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 16:44:13 +08:00
fix
This commit is contained in:
parent
870332b2de
commit
cdf7e5591d
@ -63,7 +63,11 @@ class playonce:
|
||||
return False
|
||||
if not self.channel_length:
|
||||
return False
|
||||
if self.channel_length == -1:
|
||||
return False
|
||||
channel_position = BASS_ChannelGetPosition(self.handle, BASS_POS_BYTE)
|
||||
if channel_position == -1:
|
||||
return False
|
||||
return channel_position < self.channel_length
|
||||
|
||||
def __play(self, fileormem, volume):
|
||||
|
Loading…
x
Reference in New Issue
Block a user