We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 740e193 commit 4375cf4Copy full SHA for 4375cf4
src/helpers.ts
@@ -1,5 +1,6 @@
1
import Howl, { HowlXHROptions } from './Howl';
2
import Howler from './howler';
3
+import { HowlGainNode } from './sound';
4
5
export const cache = {};
6
@@ -146,3 +147,7 @@ export const isHTMLAudioElement = (node: any): node is HTMLAudioElement =>
146
147
148
export const isGainNode = (node: any): node is GainNode =>
149
(node as GainNode).connect !== undefined;
150
+
151
+export const isAudioBufferSourceNode = (
152
+ node: any,
153
+): node is AudioBufferSourceNode => node instanceof AudioBufferSourceNode;
0 commit comments