diff src/app/app.component.ts @ 17:ff964b28a272

Clear waveform before redrawing, otherwise the waveform is not drawn. also remove some debug outputs.
author Lucas Thompson <dev@lucas.im>
date Thu, 27 Oct 2016 17:47:20 +0100
parents 7e3ab6f8792f
children 953932e9ba82
line wrap: on
line diff
--- a/src/app/app.component.ts	Thu Oct 27 17:08:57 2016 +0100
+++ b/src/app/app.component.ts	Thu Oct 27 17:47:20 2016 +0100
@@ -24,7 +24,6 @@
 
   onAudioLoaded(buffer: AudioBuffer) {
     this.zone.run(() => { // TODO why the f does this only recognise changes immediately (and not the next tick) inside zone.run?
-      console.log("audio loaded");
       this.audioBuffer = buffer;
       this.count++;
     });