diff --git a/commitlint.config.js b/commitlint.config.js index 3347cb961..c5a18b792 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -1 +1,6 @@ -module.exports = {extends: ['@commitlint/config-conventional']}; +module.exports = { + extends: ['@commitlint/config-conventional'], + rules: { + 'footer-max-line-length': [2, 'always', 200], + }, +}; diff --git a/libs/audio/README.md b/libs/audio/README.md index 92b5b45ca..533f36097 100644 --- a/libs/audio/README.md +++ b/libs/audio/README.md @@ -98,7 +98,6 @@ You can use following audio nodes through directives of the same name (**prefixe - [MediaElementAudioSourceNode](https://developer.mozilla.org/en-US/docs/Web/API/MediaElementAudioSourceNode) - [MediaStreamAudioSourceNode](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamAudioSourceNode) -- [MediaStreamTrackAudioSourceNode](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrackAudioSourceNode) - [OscillatorNode](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode) 💡 Additionally supports empty `autoplay` attribute similar to `audio` tag so it would start playing immediately @@ -327,8 +326,6 @@ envelope = [ [IIRFilterNode](https://developer.mozilla.org/en-US/docs/Web/API/IIRFilterNode) - Provide `MEDIA_STREAM` token to be able to create [MediaStreamAudioSourceNode](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamAudioSourceNode) -- Provide `MEDIA_STREAM_TRACK` token to be able to create - [MediaStreamTrackAudioSourceNode](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrackAudioSourceNode) - All node directives provide underlying [AudioNode](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode) as `AUDIO_NODE` token - Use `AUDIO_WORKLET_PROCESSORS` token to declare array of diff --git a/libs/audio/src/index.ts b/libs/audio/src/index.ts index 0b839bb0b..08ca0d70a 100644 --- a/libs/audio/src/index.ts +++ b/libs/audio/src/index.ts @@ -35,7 +35,6 @@ export * from './sources/buffer-source'; export * from './sources/constant-source'; export * from './sources/media-source'; export * from './sources/media-stream-source'; -export * from './sources/media-stream-track-source'; export * from './sources/oscillator'; export * from './tokens/audio-context'; @@ -46,7 +45,6 @@ export * from './tokens/audio-worklet-support'; export * from './tokens/feedback-coefficients'; export * from './tokens/feedforward-coefficients'; export * from './tokens/media-stream'; -export * from './tokens/media-stream-track'; export * from './tokens/support'; export * from './types/audio-param-input'; diff --git a/libs/audio/src/module.ts b/libs/audio/src/module.ts index 2840962dc..04e863990 100644 --- a/libs/audio/src/module.ts +++ b/libs/audio/src/module.ts @@ -26,7 +26,6 @@ import {WebAudioBufferSource} from './sources/buffer-source'; import {WebAudioConstantSource} from './sources/constant-source'; import {WebAudioMediaSource} from './sources/media-source'; import {WebAudioMediaStreamSource} from './sources/media-stream-source'; -import {WebAudioMediaStreamTrackSource} from './sources/media-stream-track-source'; import {WebAudioOscillator} from './sources/oscillator'; @NgModule({ @@ -42,7 +41,6 @@ import {WebAudioOscillator} from './sources/oscillator'; WebAudioConstantSource, WebAudioMediaSource, WebAudioMediaStreamSource, - WebAudioMediaStreamTrackSource, WebAudioOscillator, WebAudioAnalyser, WebAudioBiquadFilter, @@ -73,7 +71,6 @@ import {WebAudioOscillator} from './sources/oscillator'; WebAudioConstantSource, WebAudioMediaSource, WebAudioMediaStreamSource, - WebAudioMediaStreamTrackSource, WebAudioOscillator, WebAudioAnalyser, WebAudioBiquadFilter, diff --git a/libs/audio/src/polyfill.js b/libs/audio/src/polyfill.js index c103e1b43..7a1172aeb 100644 --- a/libs/audio/src/polyfill.js +++ b/libs/audio/src/polyfill.js @@ -26,5 +26,3 @@ windowRef.MediaStreamAudioDestinationNode = windowRef.MediaStreamAudioDestinationNode || function () {}; windowRef.MediaStreamAudioSourceNode = windowRef.MediaStreamAudioSourceNode || function () {}; -windowRef.MediaStreamTrackAudioSourceNode = - windowRef.MediaStreamTrackAudioSourceNode || function () {}; diff --git a/libs/audio/src/sources/media-stream-track-source.ts b/libs/audio/src/sources/media-stream-track-source.ts deleted file mode 100644 index 4c26ab6f5..000000000 --- a/libs/audio/src/sources/media-stream-track-source.ts +++ /dev/null @@ -1,31 +0,0 @@ -import {Directive, forwardRef, Inject, OnDestroy} from '@angular/core'; -import {AUDIO_CONTEXT} from '../tokens/audio-context'; -import {AUDIO_NODE} from '../tokens/audio-node'; -import {MEDIA_STREAM_TRACK} from '../tokens/media-stream-track'; - -// @dynamic -@Directive({ - selector: '[waMediaStreamTrackAudioSourceNode]', - exportAs: 'AudioNode', - providers: [ - { - provide: AUDIO_NODE, - useExisting: forwardRef(() => WebAudioMediaStreamTrackSource), - }, - ], -}) -export class WebAudioMediaStreamTrackSource - extends MediaStreamTrackAudioSourceNode - implements OnDestroy -{ - constructor( - @Inject(MEDIA_STREAM_TRACK) mediaStreamTrack: MediaStreamTrack, - @Inject(AUDIO_CONTEXT) context: AudioContext, - ) { - super(context, {mediaStreamTrack}); - } - - ngOnDestroy() { - this.disconnect(); - } -} diff --git a/libs/audio/src/tokens/media-stream-track.ts b/libs/audio/src/tokens/media-stream-track.ts deleted file mode 100644 index abb855274..000000000 --- a/libs/audio/src/tokens/media-stream-track.ts +++ /dev/null @@ -1,5 +0,0 @@ -import {InjectionToken} from '@angular/core'; - -export const MEDIA_STREAM_TRACK = new InjectionToken( - 'MediaStreamTrack for MediaStreamTrackAudioSourceNode', -); diff --git a/libs/universal/src/mocks.js b/libs/universal/src/mocks.js index 7551b50ce..e0653b500 100644 --- a/libs/universal/src/mocks.js +++ b/libs/universal/src/mocks.js @@ -27,7 +27,6 @@ global.ConstantSourceNode = class {}; global.MediaElementAudioSourceNode = class {}; global.MediaStreamAudioSourceNode = class {}; - global.MediaStreamTrackAudioSourceNode = class {}; global.OscillatorNode = class {}; global.MediaStreamAudioDestinationNode = class {}; global.AnalyserNode = class {};