# HG changeset patch # User Lucas Thompson # Date 1498743351 -3600 # Node ID 8113b6f5a75e6729bef2433de485fd6646bc4798 # Parent b4372cdf495ccbfd62d0e6af4fe691278fbc4141 Add a mimeType property to audio items. diff -r b4372cdf495c -r 8113b6f5a75e src/app/analysis-item/analysis-item.component.ts --- a/src/app/analysis-item/analysis-item.component.ts Thu Jun 29 14:34:16 2017 +0100 +++ b/src/app/analysis-item/analysis-item.component.ts Thu Jun 29 14:35:51 2017 +0100 @@ -30,6 +30,7 @@ export interface PendingRootAudioItem extends Item { uri: string; + mimeType?: string; } export interface RootAudioItem extends PendingRootAudioItem { audioData: AudioBuffer; diff -r b4372cdf495c -r 8113b6f5a75e src/app/app.component.ts --- a/src/app/app.component.ts Thu Jun 29 14:34:16 2017 +0100 +++ b/src/app/app.component.ts Thu Jun 29 14:35:51 2017 +0100 @@ -164,7 +164,8 @@ hasSharedTimeline: true, title: title, description: new Date().toLocaleString(), - id: `${++this.countingId}` + id: `${++this.countingId}`, + mimeType: file.type } as PendingRootAudioItem; this.rootAudioItem = pending as RootAudioItem; // TODO this is silly