system standard resets audio context
This commit is contained in:
parent
f45a3933de
commit
48fa04f164
3 changed files with 14 additions and 11 deletions
|
|
@ -28,8 +28,8 @@ export const resetLoadedSounds = () => soundMap.set({});
|
|||
|
||||
let audioContext;
|
||||
|
||||
export const getAudioContext = () => {
|
||||
if (!audioContext) {
|
||||
export const getAudioContext = (reset) => {
|
||||
if (!audioContext || reset) {
|
||||
audioContext = new AudioContext();
|
||||
}
|
||||
return audioContext;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue