Mercurial > hg > piper-cpp
comparison capnproto/VampnProto.h @ 23:d678cd00e593
Begin vampipe-convert
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Fri, 20 May 2016 18:05:02 +0100 |
parents | 071c55f52c7d |
children | 533ca5ca3404 |
comparison
equal
deleted
inserted
replaced
22:b0fc4eb51547 | 23:d678cd00e593 |
---|---|
707 buildProcessRequest(u, pr, mapper); | 707 buildProcessRequest(u, pr, mapper); |
708 } | 708 } |
709 | 709 |
710 static void | 710 static void |
711 buildVampResponse_Process(VampResponse::Builder &b, | 711 buildVampResponse_Process(VampResponse::Builder &b, |
712 const Vamp::HostExt::ProcessResponse &pr) { | 712 const Vamp::HostExt::ProcessResponse &pr) { |
713 b.setSuccess(true); | 713 b.setSuccess(true); |
714 b.setErrorText(""); | 714 b.setErrorText(""); |
715 auto u = b.getResponse().initProcess(); | 715 auto u = b.getResponse().initProcess(); |
716 buildProcessResponse(u, pr); | 716 buildProcessResponse(u, pr); |
717 } | 717 } |
718 | 718 |
719 static void | 719 static void |
720 buildVampRequest_Finish(VampRequest::Builder &b) { | 720 buildVampRequest_Finish(VampRequest::Builder &b, |
721 | 721 Vamp::Plugin *p, |
722 b.getRequest().setFinish(); | 722 PluginHandleMapper &mapper) { |
723 | |
724 auto u = b.getRequest().initFinish(); | |
725 u.setPluginHandle(mapper.pluginToHandle(p)); | |
723 } | 726 } |
724 | 727 |
725 static void | 728 static void |
726 buildVampResponse_Finish(VampResponse::Builder &b, | 729 buildVampResponse_Finish(VampResponse::Builder &b, |
727 const Vamp::HostExt::ProcessResponse &pr) { | 730 const Vamp::HostExt::ProcessResponse &pr) { |