mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-28 08:04:13 +08:00
fix
This commit is contained in:
parent
d8e0df5859
commit
3162ca5762
@ -367,6 +367,8 @@ class wavmp3player:
|
||||
|
||||
def _playsoundWin(self, binary, volume):
|
||||
try:
|
||||
if self.lastfile:
|
||||
winsharedutils.PlayAudioInMem_Stop(self.lastfile[0], self.lastfile[1])
|
||||
duration = c_float()
|
||||
device = c_void_p()
|
||||
decoder = c_void_p()
|
||||
@ -380,8 +382,6 @@ class wavmp3player:
|
||||
)
|
||||
if succ != 0:
|
||||
return 0
|
||||
if self.lastfile:
|
||||
winsharedutils.PlayAudioInMem_Stop(self.lastfile[0], self.lastfile[1])
|
||||
self.lastfile = decoder, device
|
||||
durationms = duration.value * 1000
|
||||
except:
|
||||
|
Loading…
x
Reference in New Issue
Block a user