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;
|
||||
|
||||
export const setDefaultAudioContext = (existingAudioCtx) => {
|
||||
audioContext = existingAudioCtx ?? new AudioContext();
|
||||
export const setDefaultAudioContext = () => {
|
||||
audioContext = new AudioContext();
|
||||
return audioContext;
|
||||
};
|
||||
|
||||
export const setAudioContext = (context) => {
|
||||
audioContext = context;
|
||||
return audioContext;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue