diff --git a/.changeset/sour-penguins-sing.md b/.changeset/sour-penguins-sing.md new file mode 100644 index 0000000000..4919ceedf9 --- /dev/null +++ b/.changeset/sour-penguins-sing.md @@ -0,0 +1,5 @@ +--- +"livekit-client": patch +--- + +Export internal mutex util diff --git a/src/index.ts b/src/index.ts index 992aa3be29..5855ac514a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -20,6 +20,7 @@ import { TrackPublication } from './room/track/TrackPublication'; import type { LiveKitReactNativeInfo } from './room/types'; import type { AudioAnalyserOptions } from './room/utils'; import { + Mutex, createAudioAnalyser, getEmptyAudioStreamTrack, getEmptyVideoStreamTrack, @@ -80,6 +81,7 @@ export { supportsAdaptiveStream, supportsDynacast, supportsVP9, + Mutex, }; export type { AudioAnalyserOptions, diff --git a/src/room/utils.ts b/src/room/utils.ts index 38c927427c..052025175e 100644 --- a/src/room/utils.ts +++ b/src/room/utils.ts @@ -447,6 +447,9 @@ export function createAudioAnalyser( return { calculateVolume, analyser, cleanup }; } +/** + * @internal + */ export class Mutex { private _locking: Promise;