Mercurial > hg > piper-cpp
comparison capnproto/VampnProto.h @ 62:18951a1f1001
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
59:77833938f0f8 | 62:18951a1f1001 |
---|---|
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, |