changeset 414:0329495fd822

Revert that, probably sensible to set the duration with the audio buffer.
author Lucas Thompson <dev@lucas.im>
date Mon, 05 Jun 2017 14:34:03 +0100
parents 24df6a0d61c8
children 95d1f10129a3
files src/app/visualisations/waveform/waveform.component.ts
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/app/visualisations/waveform/waveform.component.ts	Mon Jun 05 14:27:16 2017 +0100
+++ b/src/app/visualisations/waveform/waveform.component.ts	Mon Jun 05 14:34:03 2017 +0100
@@ -18,6 +18,7 @@
 })
 export class WaveformComponent extends WavesComponent<AudioBuffer> {
   @Input() set audioBuffer(buffer: AudioBuffer) {
+    this.duration = buffer.duration;
     this.timeline.pixelsPerSecond = this.timeline.visibleWidth / buffer.duration;
     this.feature = buffer;
   }