Mercurial > hg > piper-cpp
comparison capnproto/vamp.capnp @ 68:a5ba837bca28
Update again to latest plugin-terminology-free schema
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Thu, 06 Oct 2016 14:32:58 +0100 |
parents | 6f160dee1192 |
children | 302a8e35248c |
comparison
equal
deleted
inserted
replaced
67:db17657ac875 | 68:a5ba837bca28 |
---|---|
67 struct OutputDescriptor { | 67 struct OutputDescriptor { |
68 basic @0 :Basic; | 68 basic @0 :Basic; |
69 configured @1 :ConfiguredOutputDescriptor; | 69 configured @1 :ConfiguredOutputDescriptor; |
70 } | 70 } |
71 | 71 |
72 struct PluginStaticData { | 72 struct ExtractorStaticData { |
73 pluginKey @0 :Text; | 73 key @0 :Text; |
74 basic @1 :Basic; | 74 basic @1 :Basic; |
75 maker @2 :Text; | 75 maker @2 :Text; |
76 copyright @3 :Text; | 76 copyright @3 :Text; |
77 pluginVersion @4 :Int32; | 77 version @4 :Int32; |
78 category @5 :List(Text); | 78 category @5 :List(Text); |
79 minChannelCount @6 :Int32; | 79 minChannelCount @6 :Int32; |
80 maxChannelCount @7 :Int32; | 80 maxChannelCount @7 :Int32; |
81 parameters @8 :List(ParameterDescriptor); | 81 parameters @8 :List(ParameterDescriptor); |
82 programs @9 :List(Text); | 82 programs @9 :List(Text); |
104 features @1 :List(Feature) = []; | 104 features @1 :List(Feature) = []; |
105 } | 105 } |
106 featurePairs @0 :List(FSPair); | 106 featurePairs @0 :List(FSPair); |
107 } | 107 } |
108 | 108 |
109 struct PluginConfiguration { | 109 struct Configuration { |
110 struct PVPair { | 110 struct PVPair { |
111 parameter @0 :Text; | 111 parameter @0 :Text; |
112 value @1 :Float32; | 112 value @1 :Float32; |
113 } | 113 } |
114 parameterValues @0 :List(PVPair); | 114 parameterValues @0 :List(PVPair); |
116 channelCount @2 :Int32; | 116 channelCount @2 :Int32; |
117 stepSize @3 :Int32; | 117 stepSize @3 :Int32; |
118 blockSize @4 :Int32; | 118 blockSize @4 :Int32; |
119 } | 119 } |
120 | 120 |
121 struct ListRequest { | |
122 } | |
123 | |
121 struct ListResponse { | 124 struct ListResponse { |
122 plugins @0 :List(PluginStaticData); | 125 available @0 :List(ExtractorStaticData); |
123 } | 126 } |
124 | 127 |
125 struct LoadRequest { | 128 struct LoadRequest { |
126 pluginKey @0 :Text; | 129 key @0 :Text; |
127 inputSampleRate @1 :Float32; | 130 inputSampleRate @1 :Float32; |
128 adapterFlags @2 :List(AdapterFlag); | 131 adapterFlags @2 :List(AdapterFlag); |
129 } | 132 } |
130 | 133 |
131 struct LoadResponse { | 134 struct LoadResponse { |
132 pluginHandle @0 :Int32; | 135 handle @0 :Int32; |
133 staticData @1 :PluginStaticData; | 136 staticData @1 :ExtractorStaticData; |
134 defaultConfiguration @2 :PluginConfiguration; | 137 defaultConfiguration @2 :Configuration; |
135 } | 138 } |
136 | 139 |
137 struct ConfigurationRequest { | 140 struct ConfigurationRequest { |
138 pluginHandle @0 :Int32; | 141 handle @0 :Int32; |
139 configuration @1 :PluginConfiguration; | 142 configuration @1 :Configuration; |
140 } | 143 } |
141 | 144 |
142 struct ConfigurationResponse { | 145 struct ConfigurationResponse { |
143 pluginHandle @0 :Int32; | 146 handle @0 :Int32; |
144 outputs @1 :List(OutputDescriptor); | 147 outputs @1 :List(OutputDescriptor); |
145 } | 148 } |
146 | 149 |
147 struct ProcessRequest { | 150 struct ProcessRequest { |
148 pluginHandle @0 :Int32; | 151 handle @0 :Int32; |
149 processInput @1 :ProcessInput; | 152 processInput @1 :ProcessInput; |
150 } | 153 } |
151 | 154 |
152 struct ProcessResponse { | 155 struct ProcessResponse { |
153 pluginHandle @0 :Int32; | 156 handle @0 :Int32; |
154 features @1 :FeatureSet; | 157 features @1 :FeatureSet; |
155 } | 158 } |
156 | 159 |
157 struct FinishRequest { | 160 struct FinishRequest { |
158 pluginHandle @0 :Int32; | 161 handle @0 :Int32; |
159 } | 162 } |
160 | 163 |
161 struct VampRequest { | 164 struct Error { |
165 code @0 :Int32; | |
166 message @1 :Text; | |
167 } | |
168 | |
169 struct RpcRequest { | |
162 request :union { | 170 request :union { |
163 list @0 :Void; | 171 list @0 :ListRequest; |
164 load @1 :LoadRequest; | 172 load @1 :LoadRequest; |
165 configure @2 :ConfigurationRequest; | 173 configure @2 :ConfigurationRequest; |
166 process @3 :ProcessRequest; | 174 process @3 :ProcessRequest; |
167 finish @4 :FinishRequest; # getRemainingFeatures and unload | 175 finish @4 :FinishRequest; # getRemainingFeatures and unload |
168 } | 176 } |
169 } | 177 } |
170 | 178 |
171 struct VampResponse { | 179 struct RpcResponse { |
172 success @0 :Bool; | |
173 errorText @1 :Text = ""; | |
174 response :union { | 180 response :union { |
175 list @2 :ListResponse; | 181 error @0 :Error; |
176 load @3 :LoadResponse; | 182 list @1 :ListResponse; |
177 configure @4 :ConfigurationResponse; | 183 load @2 :LoadResponse; |
178 process @5 :ProcessResponse; | 184 configure @3 :ConfigurationResponse; |
179 finish @6 :ProcessResponse; | 185 process @4 :ProcessResponse; |
186 finish @5 :ProcessResponse; | |
180 } | 187 } |
181 } | 188 } |
182 | 189 |