view src/bootstrap-feature-extraction-worker.js @ 193:ac57ddba8ba9

Provide an observable in the audio service for when new audio has been loaded. The handling of errors is currently undesirable, using optional fields on the returned object. I couldn't figure out the proper Observable error flow without closing the stream.
author Lucas Thompson <dev@lucas.im>
date Thu, 23 Mar 2017 15:44:32 +0000
parents 8f2b2aed0df1
children 103cc6f63da1
line wrap: on
line source
/**
 * Created by lucas on 01/12/2016.
 */
let window = {};
importScripts('/inline.bundle.js'); // provides webpackJsonp
const webpackJsonp = window['webpackJsonp'];
importScripts('/scripts.bundle.js'); // needs webpackJsonp, hence above - provides RequireJS
importScripts('/polyfills.bundle.js'); // provides the compiled FeatureExtractionWorker

new (require('feature-extraction-worker'))(self, requirejs);