# HG changeset patch # User Lucas Thompson # Date 1496669643 -3600 # Node ID 0329495fd822a922c20a15982dcc441c6529f902 # Parent 24df6a0d61c8b5b5cb003d7001ab425f9e1a6b65 Revert that, probably sensible to set the duration with the audio buffer. diff -r 24df6a0d61c8 -r 0329495fd822 src/app/visualisations/waveform/waveform.component.ts --- 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 { @Input() set audioBuffer(buffer: AudioBuffer) { + this.duration = buffer.duration; this.timeline.pixelsPerSecond = this.timeline.visibleWidth / buffer.duration; this.feature = buffer; }