comparison capnproto/VampnProto.h @ 61:0ea374ea96a2

input -> processInput, to align with JSON
author Chris Cannam <c.cannam@qmul.ac.uk>
date Wed, 21 Sep 2016 12:59:35 +0100
parents 7aec704705c7
children 85ec33975434
comparison
equal deleted inserted replaced
60:8a4bcb3dc3a6 61:0ea374ea96a2
637 buildProcessRequest(ProcessRequest::Builder &b, 637 buildProcessRequest(ProcessRequest::Builder &b,
638 const Vamp::HostExt::ProcessRequest &pr, 638 const Vamp::HostExt::ProcessRequest &pr,
639 const PluginHandleMapper &pmapper) { 639 const PluginHandleMapper &pmapper) {
640 640
641 b.setPluginHandle(pmapper.pluginToHandle(pr.plugin)); 641 b.setPluginHandle(pmapper.pluginToHandle(pr.plugin));
642 auto input = b.initInput(); 642 auto input = b.initProcessInput();
643 buildProcessInput(input, pr.timestamp, pr.inputBuffers); 643 buildProcessInput(input, pr.timestamp, pr.inputBuffers);
644 } 644 }
645 645
646 static void 646 static void
647 readProcessRequest(Vamp::HostExt::ProcessRequest &pr, 647 readProcessRequest(Vamp::HostExt::ProcessRequest &pr,
648 const ProcessRequest::Reader &r, 648 const ProcessRequest::Reader &r,
649 const PluginHandleMapper &pmapper) { 649 const PluginHandleMapper &pmapper) {
650 650
651 auto h = r.getPluginHandle(); 651 auto h = r.getPluginHandle();
652 pr.plugin = pmapper.handleToPlugin(h); 652 pr.plugin = pmapper.handleToPlugin(h);
653 readProcessInput(pr.timestamp, pr.inputBuffers, r.getInput()); 653 readProcessInput(pr.timestamp, pr.inputBuffers, r.getProcessInput());
654 } 654 }
655 655
656 static void 656 static void
657 buildProcessResponse(ProcessResponse::Builder &b, 657 buildProcessResponse(ProcessResponse::Builder &b,
658 const Vamp::HostExt::ProcessResponse &pr, 658 const Vamp::HostExt::ProcessResponse &pr,