view src/app/notebook-feed/notebook-feed.component.ts @ 189:a50feba0d7f0

Share Timeline instance instead of previous event emitting TimelineTimeContext bodge.
author Lucas Thompson <dev@lucas.im>
date Wed, 22 Mar 2017 14:34:43 +0000
parents 7cd274d296a3
children d179cf7df697
line wrap: on
line source
/**
 * Created by lucast on 21/03/2017.
 */
import {Component, Input} from "@angular/core";
import Waves from 'waves-ui';

@Component({
  selector: 'ugly-notebook-feed',
  templateUrl: './notebook-feed.component.html',
  styleUrls: ['./notebook-feed.component.css']
})
export class NotebookFeedComponent {
  private _audioBuffer: AudioBuffer;
  sharedTimeline: Timeline;


  @Input()
  set audioBuffer(buffer: AudioBuffer) {
    this._audioBuffer = buffer || undefined;
    if (this.audioBuffer) {

    }
  }

  get audioBuffer(): AudioBuffer {
    return this._audioBuffer;
  }

  constructor() {
    this.sharedTimeline = new Waves.core.Timeline();
  }
}