From 1dd6d0b765350272ad49fbdee9dea6741b24efee Mon Sep 17 00:00:00 2001 From: Christoph Guttandin Date: Thu, 28 Dec 2023 01:29:58 +0100 Subject: [PATCH] fix: define createMediaStreamTrackSource() as optional --- src/types/native-audio-context.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/types/native-audio-context.ts b/src/types/native-audio-context.ts index a3a6bfba..42037920 100644 --- a/src/types/native-audio-context.ts +++ b/src/types/native-audio-context.ts @@ -1,6 +1,6 @@ import { TNativeMediaStreamTrackAudioSourceNode } from './native-media-stream-track-audio-source-node'; export type TNativeAudioContext = AudioContext & { - // @todo TypeScript v4.4 doesn't come with definitions for the MediaStreamTrackAudioSourceNode anymore. - createMediaStreamTrackSource(mediaStreamTrack: MediaStreamTrack): TNativeMediaStreamTrackAudioSourceNode; + // Bug #121: Only Firefox does yet support the MediaStreamTrackAudioSourceNode. + createMediaStreamTrackSource?(mediaStreamTrack: MediaStreamTrack): TNativeMediaStreamTrackAudioSourceNode; };