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