Fix simulator stop() method
This commit is contained in:
1 parent
cb648019bb
commit
d436bd1227
1 file changed
+6
-3
+6
-3
@@ -43,9 +43,12 @@ namespace pxsim.SoundMethods {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function stop() {
|
export function stop() {
|
||||||
if (audio) {
|
return new Promise<void>(resolve => {
|
||||||
audio.pause();
|
if (audio) {
|
||||||
}
|
audio.pause();
|
||||||
|
numSoundsPlaying--;
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user