Mercurial > hg > ugly-duckling
comparison src/app/app.module.ts @ 44:13f5f228ed98
Add a component for the feature extraction menu, and start setting up some comms with the worker. Currently populating a select box with list of extractors from hardcoded server.
author | Lucas Thompson <dev@lucas.im> |
---|---|
date | Fri, 02 Dec 2016 16:55:14 +0000 |
parents | f7244f2155a3 |
children | d4ebafe32c23 |
comparison
equal
deleted
inserted
replaced
43:c6f3ec87915a | 44:13f5f228ed98 |
---|---|
8 import { WaveformComponent } from './waveform/waveform.component'; | 8 import { WaveformComponent } from './waveform/waveform.component'; |
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 | 14 |
14 function createAudioContext(): AudioContext { | 15 function createAudioContext(): AudioContext { |
15 return new ( | 16 return new ( |
16 (window as any).AudioContext | 17 (window as any).AudioContext |
17 || (window as any).webkitAudioContext | 18 || (window as any).webkitAudioContext |
21 @NgModule({ | 22 @NgModule({ |
22 declarations: [ | 23 declarations: [ |
23 AppComponent, | 24 AppComponent, |
24 WaveformComponent, | 25 WaveformComponent, |
25 AudioFileOpenComponent, | 26 AudioFileOpenComponent, |
26 PlaybackControlComponent | 27 PlaybackControlComponent, |
28 FeatureExtractionMenuComponent | |
27 ], | 29 ], |
28 imports: [ | 30 imports: [ |
29 BrowserModule, | 31 BrowserModule, |
30 FormsModule, | 32 FormsModule, |
31 HttpModule, | 33 HttpModule, |