upgraded to run in parallel

This commit is contained in:
Peli de Halleux
2018-01-23 14:52:41 -08:00
parent 18480080e7
commit 387effbdd0
9 changed files with 14 additions and 14 deletions

View File

@ -291,7 +291,7 @@ namespace music {
export function playSoundEffect(sound: Sound) {
if (!sound || numSoundsPlaying >= soundsLimit) return;
numSoundsPlaying++;
control.runInBackground(() => {
control.runInParallel(() => {
sound.play();
numSoundsPlaying--;
});