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