comparison src/app/app.module.ts @ 115:c02c76b94148

Basic spinner for indicating loading of files and features - the flag used for tracking state is mostly redundant (it is usually !canExtract... apart from initial state)... but going with this for now.
author Lucas Thompson <dev@lucas.im>
date Tue, 14 Mar 2017 16:11:40 +0000
parents edddb2a5cf10
children 262995cfd3e6
comparison
equal deleted inserted replaced
114:ba1de1f4015f 115:c02c76b94148
9 import { AudioFileOpenComponent } from './audio-file-open/audio-file-open.component'; 9 import { AudioFileOpenComponent } from './audio-file-open/audio-file-open.component';
10 import { PlaybackControlComponent } from './playback-control/playback-control.component'; 10 import { PlaybackControlComponent } from './playback-control/playback-control.component';
11 import { AudioPlayerService } from "./services/audio-player/audio-player.service"; 11 import { AudioPlayerService } from "./services/audio-player/audio-player.service";
12 import { FeatureExtractionService } from "./services/feature-extraction/feature-extraction.service"; 12 import { FeatureExtractionService } from "./services/feature-extraction/feature-extraction.service";
13 import { FeatureExtractionMenuComponent } from "./feature-extraction-menu/feature-extraction-menu.component"; 13 import { FeatureExtractionMenuComponent } from "./feature-extraction-menu/feature-extraction-menu.component";
14 import { ProgressSpinnerComponent } from "./progress-spinner/progress-spinner.component";
14 15
15 export function createAudioContext(): AudioContext { 16 export function createAudioContext(): AudioContext {
16 return new ( 17 return new (
17 (window as any).AudioContext 18 (window as any).AudioContext
18 || (window as any).webkitAudioContext 19 || (window as any).webkitAudioContext
27 declarations: [ 28 declarations: [
28 AppComponent, 29 AppComponent,
29 WaveformComponent, 30 WaveformComponent,
30 AudioFileOpenComponent, 31 AudioFileOpenComponent,
31 PlaybackControlComponent, 32 PlaybackControlComponent,
32 FeatureExtractionMenuComponent 33 FeatureExtractionMenuComponent,
34 ProgressSpinnerComponent
33 ], 35 ],
34 imports: [ 36 imports: [
35 BrowserModule, 37 BrowserModule,
36 FormsModule, 38 FormsModule,
37 HttpModule, 39 HttpModule,