mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-02-03 13:12:42 +00:00
16 lines
388 B
TypeScript
16 lines
388 B
TypeScript
export abstract class Visualizer {
|
|
protected audioNode: GainNode;
|
|
protected audioSource: MediaElementAudioSourceNode;
|
|
|
|
protected constructor(
|
|
_audioSource: MediaElementAudioSourceNode,
|
|
_audioNode: GainNode,
|
|
) {
|
|
this.audioNode = _audioNode;
|
|
this.audioSource = _audioSource;
|
|
}
|
|
|
|
abstract resize(width: number, height: number): void;
|
|
abstract destroy(): void;
|
|
}
|