Mercurial > hg > ugly-duckling
diff src/app/audio-file-open/audio-file-open.component.html @ 15:0571cf863026
Hack into the component the decoding of the chosen audio file, this needs refactoring and actually thinking about. Now, how to get the AudioBuffer to the waveform component?
author | Lucas Thompson <dev@lucas.im> |
---|---|
date | Thu, 27 Oct 2016 14:44:37 +0100 |
parents | 2ae70581dafd |
children | cf4a17efb5d4 |
line wrap: on
line diff
--- a/src/app/audio-file-open/audio-file-open.component.html Thu Oct 27 13:40:48 2016 +0100 +++ b/src/app/audio-file-open/audio-file-open.component.html Thu Oct 27 14:44:37 2016 +0100 @@ -1,4 +1,4 @@ -<input #open type="file" accept="audio/*" (change)="openAudio($event.target.files)"/> +<input #open type="file" accept="audio/*" (change)="decodeAudio($event.target.files)"/> <button md-icon-button (click)="openAudioDialog()"> <md-icon>folder_open</md-icon> </button>