@@ -223,7 +223,6 @@ import {
223223} from './interfaces' ;
224224import {
225225 TActiveAudioWorkletNodeInputsStore ,
226- TAddAudioWorkletModuleFunction ,
227226 TAnalyserNodeConstructor ,
228227 TAudioBufferConstructor ,
229228 TAudioBufferSourceNodeConstructor ,
@@ -238,7 +237,6 @@ import {
238237 TConstantSourceNodeConstructor ,
239238 TContext ,
240239 TConvolverNodeConstructor ,
241- TDecodeAudioDataFunction ,
242240 TDelayNodeConstructor ,
243241 TDynamicsCompressorNodeConstructor ,
244242 TGainNodeConstructor ,
@@ -587,9 +585,7 @@ const getOrCreateBackupOfflineAudioContext = createGetOrCreateBackupOfflineAudio
587585 backupOfflineAudioContextStore ,
588586 nativeOfflineAudioContextConstructor
589587) ;
590-
591- // The addAudioWorkletModule() function is only available in a SecureContext.
592- export const addAudioWorkletModule : undefined | TAddAudioWorkletModuleFunction = isSecureContext
588+ const addAudioWorkletModule = isSecureContext
593589 ? createAddAudioWorkletModule (
594590 cacheTestResult ,
595591 createFetchSource ( createAbortError ) ,
@@ -601,17 +597,8 @@ export const addAudioWorkletModule: undefined | TAddAudioWorkletModuleFunction =
601597 createTestAudioWorkletProcessorPostMessageSupport ( nativeAudioWorkletNodeConstructor , nativeOfflineAudioContextConstructor )
602598 )
603599 : undefined ;
604-
605600const isNativeContext = createIsNativeContext ( isNativeAudioContext , isNativeOfflineAudioContext ) ;
606-
607- export const decodeAudioData : TDecodeAudioDataFunction = createDecodeAudioData (
608- audioBufferStore ,
609- createDataCloneError ,
610- new WeakSet ( ) ,
611- getNativeContext ,
612- isNativeContext
613- ) ;
614-
601+ const decodeAudioData = createDecodeAudioData ( audioBufferStore , createDataCloneError , new WeakSet ( ) , getNativeContext , isNativeContext ) ;
615602const baseAudioContextConstructor = createBaseAudioContextConstructor (
616603 addAudioWorkletModule ,
617604 analyserNodeConstructor ,
@@ -720,11 +707,11 @@ export { channelSplitterNodeConstructor as ChannelSplitterNode };
720707
721708type constantSourceNodeConstructor < T extends TContext > = IConstantSourceNode < T > ;
722709
723- export { convolverNodeConstructor as ConvolverNode } ;
710+ export { constantSourceNodeConstructor as ConstantSourceNode } ;
724711
725712type convolverNodeConstructor < T extends TContext > = IConvolverNode < T > ;
726713
727- export { constantSourceNodeConstructor as ConstantSourceNode } ;
714+ export { convolverNodeConstructor as ConvolverNode } ;
728715
729716type delayNodeConstructor < T extends TContext > = IDelayNode < T > ;
730717
@@ -812,6 +799,10 @@ type waveShaperNodeConstructor<T extends TContext> = IWaveShaperNode<T>;
812799
813800export { waveShaperNodeConstructor as WaveShaperNode } ;
814801
802+ export { addAudioWorkletModule } ;
803+
804+ export { decodeAudioData } ;
805+
815806export const isAnyAudioContext = createIsAnyAudioContext ( CONTEXT_STORE , isNativeAudioContext ) ;
816807
817808export const isAnyAudioNode = createIsAnyAudioNode ( AUDIO_NODE_STORE , isNativeAudioNode ) ;
0 commit comments