Skip to content

Commit 4375cf4

Browse files
committed
wip refactor
1 parent 740e193 commit 4375cf4

File tree

3 files changed

+188
-115
lines changed

3 files changed

+188
-115
lines changed

src/helpers.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import Howl, { HowlXHROptions } from './Howl';
22
import Howler from './howler';
3+
import { HowlGainNode } from './sound';
34

45
export const cache = {};
56

@@ -146,3 +147,7 @@ export const isHTMLAudioElement = (node: any): node is HTMLAudioElement =>
146147

147148
export const isGainNode = (node: any): node is GainNode =>
148149
(node as GainNode).connect !== undefined;
150+
151+
export const isAudioBufferSourceNode = (
152+
node: any,
153+
): node is AudioBufferSourceNode => node instanceof AudioBufferSourceNode;

0 commit comments

Comments
 (0)