Mercurial > hg > ugly-duckling
changeset 200:d7e4bba39d20
Moving towards defining an analysis item - it is already doing too much in terms of also describing the root audio.
author | Lucas Thompson <dev@lucas.im> |
---|---|
date | Fri, 24 Mar 2017 11:05:20 +0000 |
parents | 3ef1aaa2ebed |
children | d179cf7df697 |
files | src/app/analysis-item/analysis-item.component.html src/app/analysis-item/analysis-item.component.ts |
diffstat | 2 files changed, 13 insertions(+), 17 deletions(-) [+] |
line wrap: on
line diff
--- a/src/app/analysis-item/analysis-item.component.html Fri Mar 24 11:04:11 2017 +0000 +++ b/src/app/analysis-item/analysis-item.component.html Fri Mar 24 11:05:20 2017 +0000 @@ -5,9 +5,12 @@ </md-card-header> <md-card-content> <app-waveform - [audioBuffer]="audioBuffer" [timeline]="timeline" [trackIdPrefix]="title" + [isSubscribedToAudioService]="isActive && isRoot" + [isSubscribedToExtractionService]="isActive && !isRoot" + [isOneShotExtractor]="true" + [isSeeking]="isActive" ></app-waveform> </md-card-content> </md-card>
--- a/src/app/analysis-item/analysis-item.component.ts Fri Mar 24 11:04:11 2017 +0000 +++ b/src/app/analysis-item/analysis-item.component.ts Fri Mar 24 11:05:20 2017 +0000 @@ -4,9 +4,13 @@ import {Component, Input} from "@angular/core"; import Waves from 'waves-ui'; -export interface Analysis { - audioUri: string; - combinedKey: string; +export interface AnalysisItem { + rootAudioUri: string; + hasSharedTimeline: boolean; + isRoot: boolean; + extractorKey: string; + title?: string; + description?: string; } @Component({ @@ -15,20 +19,9 @@ styleUrls: ['./analysis-item.component.css'] }) export class AnalysisItemComponent { - private _audioBuffer: AudioBuffer; @Input() timeline: Timeline; @Input() title: string; @Input() description: string; - - @Input() - set audioBuffer(buffer: AudioBuffer) { - this._audioBuffer = buffer || undefined; - if (this.audioBuffer) { - - } - } - - get audioBuffer(): AudioBuffer { - return this._audioBuffer; - } + @Input() isActive: boolean; + @Input() isRoot: boolean; }