From a8e734a01026189ce2d82cbdebb02d263fd498e2 Mon Sep 17 00:00:00 2001 From: Andy Fillebrown Date: Thu, 21 Nov 2024 19:00:47 -0500 Subject: [PATCH] Export sound source types --- packages/dev/core/src/Audio/v2/webAudio/webAudioStaticSound.ts | 2 +- .../dev/core/src/Audio/v2/webAudio/webAudioStreamingSound.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/dev/core/src/Audio/v2/webAudio/webAudioStaticSound.ts b/packages/dev/core/src/Audio/v2/webAudio/webAudioStaticSound.ts index 02b89fe2590..1577ddb23d3 100644 --- a/packages/dev/core/src/Audio/v2/webAudio/webAudioStaticSound.ts +++ b/packages/dev/core/src/Audio/v2/webAudio/webAudioStaticSound.ts @@ -12,7 +12,7 @@ import type { _WebAudioMainBus } from "./webAudioMainBus"; const fileExtensionRegex = new RegExp("\\.(\\w{3,4}$|\\?)"); -type StaticSoundSourceType = ArrayBuffer | AudioBuffer | StaticSoundBuffer | string | string[]; +export type StaticSoundSourceType = ArrayBuffer | AudioBuffer | StaticSoundBuffer | string | string[]; /** * Creates a new static sound. diff --git a/packages/dev/core/src/Audio/v2/webAudio/webAudioStreamingSound.ts b/packages/dev/core/src/Audio/v2/webAudio/webAudioStreamingSound.ts index 777c399c69b..20cbe3c9370 100644 --- a/packages/dev/core/src/Audio/v2/webAudio/webAudioStreamingSound.ts +++ b/packages/dev/core/src/Audio/v2/webAudio/webAudioStreamingSound.ts @@ -10,7 +10,7 @@ import type { _WebAudioBus } from "./webAudioBus"; import type { _WebAudioEngine } from "./webAudioEngine"; import type { _WebAudioMainBus } from "./webAudioMainBus"; -type StreamingSoundSourceType = HTMLMediaElement | string | string[]; +export type StreamingSoundSourceType = HTMLMediaElement | string | string[]; /** * Creates a new streaming sound.