reset audioContext to main branch
This commit is contained in:
parent
adf9596d07
commit
a86e5751eb
1 changed files with 7 additions and 2 deletions
|
|
@ -1,7 +1,12 @@
|
||||||
let audioContext;
|
let audioContext;
|
||||||
|
|
||||||
export const setDefaultAudioContext = (existingAudioCtx) => {
|
export const setDefaultAudioContext = () => {
|
||||||
audioContext = existingAudioCtx ?? new AudioContext();
|
audioContext = new AudioContext();
|
||||||
|
return audioContext;
|
||||||
|
};
|
||||||
|
|
||||||
|
export const setAudioContext = (context) => {
|
||||||
|
audioContext = context;
|
||||||
return audioContext;
|
return audioContext;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue