diff src/app/services/feature-extraction/FeatureExtractionWorker.ts @ 88:4aa6b1266251

Change deprecated names from piper
author Lucas Thompson <dev@lucas.im>
date Thu, 23 Feb 2017 16:13:38 +0000
parents 5fb318ac16d5
children 4865567d9e43
line wrap: on
line diff
--- a/src/app/services/feature-extraction/FeatureExtractionWorker.ts	Thu Feb 23 16:13:14 2017 +0000
+++ b/src/app/services/feature-extraction/FeatureExtractionWorker.ts	Thu Feb 23 16:13:38 2017 +0000
@@ -2,7 +2,7 @@
  * Created by lucas on 01/12/2016.
  */
 
-import {EmscriptenProxy, ListRequest, ListResponse} from 'piper';
+import {PiperVampService, ListRequest, ListResponse} from 'piper';
 import {
   PiperSimpleClient, SimpleRequest,
   SimpleResponse
@@ -37,7 +37,7 @@
     this.remoteLibraries = new Map<LibraryKey, LibraryUri>();
     this.clients.set(
       'vamp-example-plugins',
-      new PiperSimpleClient(new EmscriptenProxy(VampExamplePlugins()))
+      new PiperSimpleClient(new PiperVampService(VampExamplePlugins()))
     );
 
     this.workerScope.onmessage = (ev: MessageEvent) => {
@@ -70,7 +70,7 @@
             this.requireJs([this.remoteLibraries.get(key)], (plugin) => {
               this.clients.set(
                 key,
-                new PiperSimpleClient(new EmscriptenProxy(plugin.createLibrary()))
+                new PiperSimpleClient(new PiperVampService(plugin.createLibrary()))
               ); // TODO won't always be an emscripten module
               this.list({}).then(sendResponse);
             });