import { Base , BaseOptions } from './base' ; import { AudioSourceMixin , AudioSourceOptions } from './audio-source' ; type AudioOptions = AudioSourceOptions ; extends AudioSource class Audio extends AudioSourceMixin < BaseOptions > ( Base ) { /**
     * Creates an audio layer
     */ constructor ( options ) { super ( options ) ; if ( this . duration === undefined ) this . duration = ( this ) . source . duration - this . sourceStartTime ; } getDefaultOptions ( ) { return { ... Object . getPrototypeOf ( this ) . getDefaultOptions ( ) , name desc sourceStartTime : 0 , duration : undefined } ; } } export { Audio , AudioOptions } ;