UNPKG

standardized-audio-context

Version:

A cross-browser wrapper for the Web Audio API which aims to closely follow the standard.

10 lines 555 B
import { isNativeAudioNodeFaker } from '../guards/native-audio-node-faker'; export const disconnectNativeAudioNodeFromNativeAudioNode = (nativeSourceAudioNode, nativeDestinationAudioNode, output, input) => { if (isNativeAudioNodeFaker(nativeDestinationAudioNode)) { nativeSourceAudioNode.disconnect(nativeDestinationAudioNode.inputs[input], output, 0); } else { nativeSourceAudioNode.disconnect(nativeDestinationAudioNode, output, input); } }; //# sourceMappingURL=disconnect-native-audio-node-from-native-audio-node.js.map