mirror of
https://github.com/wechat-miniprogram/minigame-tuanjie-transform-sdk.git
synced 2025-11-13 03:35:55 +08:00
34 lines
659 B
JavaScript
34 lines
659 B
JavaScript
|
|
|
||
|
|
export const WEBAudio = {
|
||
|
|
audioInstanceIdCounter: 0,
|
||
|
|
audioInstances: {},
|
||
|
|
audioContext: null,
|
||
|
|
audioWebEnabled: 0,
|
||
|
|
audioCache: [],
|
||
|
|
lOrientation: {
|
||
|
|
x: 0,
|
||
|
|
y: 0,
|
||
|
|
z: 0,
|
||
|
|
xUp: 0,
|
||
|
|
yUp: 0,
|
||
|
|
zUp: 0,
|
||
|
|
},
|
||
|
|
lPosition: { x: 0, y: 0, z: 0 },
|
||
|
|
audio3DSupport: 0,
|
||
|
|
audioWebSupport: 0,
|
||
|
|
bufferSourceNodeLength: 0,
|
||
|
|
audioBufferLength: 0,
|
||
|
|
isMute: false,
|
||
|
|
FAKEMOD_SAMPLERATE: 44100,
|
||
|
|
};
|
||
|
|
|
||
|
|
export const audios = {};
|
||
|
|
|
||
|
|
export const localAudioMap = {};
|
||
|
|
|
||
|
|
export const downloadingAudioMap = {};
|
||
|
|
|
||
|
|
export const unityAudioVolume = new WeakMap();
|
||
|
|
|
||
|
|
export const innerAudioVolume = new WeakMap();
|