summaryrefslogtreecommitdiffstats
path: root/tests/ingen_test.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-12-17 20:33:47 +0100
committerDavid Robillard <d@drobilla.net>2017-12-17 20:33:47 +0100
commit7f37e2306f79d3f77934aa97e5f784fb0b39b838 (patch)
tree32a8b3b87795ba494ff5f0fcaf7ea893a8fb5594 /tests/ingen_test.cpp
parent86bf9cbd7af99c8964745d414494c26af11af0f4 (diff)
downloadingen-7f37e2.tar.gz
ingen-7f37e2.tar.bz2
ingen-7f37e2.zip
Use LV2 atom forge C++ bindings
Diffstat (limited to 'tests/ingen_test.cpp')
-rw-r--r--tests/ingen_test.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/ingen_test.cpp b/tests/ingen_test.cpp
index 6ba91f33..4ff165f8 100644
--- a/tests/ingen_test.cpp
+++ b/tests/ingen_test.cpp
@@ -27,8 +27,8 @@
#include <glibmm/thread.h>
#include <glibmm/timer.h>
+#include "lv2/lv2plug.in/ns/ext/atom/Forge.hpp"
#include "raul/Path.hpp"
-
#include "serd/serd.h"
#include "sord/sordmm.hpp"
#include "sratom/sratom.h"
@@ -127,10 +127,8 @@ main(int argc, char** argv)
sratom_set_object_mode(sratom, SRATOM_OBJECT_MODE_BLANK_SUBJECT);
- LV2_Atom_Forge forge;
- lv2_atom_forge_init(&forge, map);
-
- AtomForgeSink out(&forge);
+ AtomForgeSink out;
+ lv2::atom::Forge forge(map, out);
// AtomReader to read commands from a file and send them to engine
AtomReader atom_reader(world->uri_map(),