Mercurial > hg > piper-vamp-js
comparison VamPipePluginLibrary.cpp @ 105:4845fbb1a516
Instead of using separate values and b64values entries in JSON serialisations, allow numeric arrays to be replaced by b64 variants wherever they appear (discriminating by type). Also rename values to featureValues in feature throughout, as values turns out to be a hazardous name in a JS context. Finally use Array instead of Text for array encoding (seems clearer).
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Tue, 27 Sep 2016 15:04:59 +0100 |
parents | d91781a91861 |
children | a9dbf9f45896 |
comparison
equal
deleted
inserted
replaced
104:2b20e610c4c2 | 105:4845fbb1a516 |
---|---|
176 } | 176 } |
177 | 177 |
178 VampJson::BufferSerialisation serialisation = | 178 VampJson::BufferSerialisation serialisation = |
179 (m_useBase64 ? | 179 (m_useBase64 ? |
180 VampJson::BufferSerialisation::Base64 : | 180 VampJson::BufferSerialisation::Base64 : |
181 VampJson::BufferSerialisation::Text); | 181 VampJson::BufferSerialisation::Array); |
182 | 182 |
183 Json rj; | 183 Json rj; |
184 | 184 |
185 switch (type) { | 185 switch (type) { |
186 | 186 |