We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 784a64e commit 21abbfeCopy full SHA for 21abbfe
src/app/waveform-view/waveform-view.component.ts
@@ -49,8 +49,6 @@ export class WaveformViewComponent implements AfterViewInit {
49
50
this.audioElement.nativeElement.src = this.selectedAudio.audioUrl;
51
52
- this.destroyPeaks();
53
-
54
Peaks.init(options, (err, peaks) => {
55
if (err) {
56
console.error(err);
@@ -63,10 +61,6 @@ export class WaveformViewComponent implements AfterViewInit {
63
61
}
64
62
65
ngOnDestroy(): void {
66
67
- }
68
69
- destroyPeaks(): void {
70
if (this.peaks) {
71
this.peaks.destroy();
72
this.peaks = undefined;
@@ -104,7 +98,6 @@ export class WaveformViewComponent implements AfterViewInit {
104
98
105
99
});
106
100
107
- this.initPeaks();
108
101
109
102
110
103
0 commit comments