Trying to get atom:Path to work for model laoding

This commit is contained in:
Mike Oliphant
2023-03-11 10:53:05 -08:00
parent fc5853d8f7
commit 100d344e3d
5 changed files with 46 additions and 10 deletions
+10
View File
@@ -4,6 +4,7 @@
// Lv2
#include <lv2/atom/util.h>
#include <lv2/patch/patch.h>
#include "nam_plugin.hpp"
@@ -15,8 +16,17 @@ namespace NAM {
void Plugin::map_uris(LV2_URID_Map* map) noexcept {
lv2_atom_forge_init(&atom_forge, map);
uris.atom_Object = map->map(map->handle, LV2_ATOM__Object);
uris.atom_Float = map->map(map->handle, LV2_ATOM__Float);
uris.atom_Int = map->map(map->handle, LV2_ATOM__Int);
uris.atom_Path = map->map(map->handle, LV2_ATOM__Path);
uris.atom_URID = map->map(map->handle, LV2_ATOM__URID);
uris.patch_Set = map->map(map->handle, LV2_PATCH__Set);
uris.patch_property = map->map(map->handle, LV2_PATCH__property);
uris.patch_value = map->map(map->handle, LV2_PATCH__value);
uris.model_Path = map->map(map->handle, MODEL_URI);
}
void Plugin::process(uint32_t n_samples) noexcept {