summaryrefslogtreecommitdiffstats
path: root/src/SocketReader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/SocketReader.cpp')
-rw-r--r--src/SocketReader.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/SocketReader.cpp b/src/SocketReader.cpp
index 381a5305..3fb846a8 100644
--- a/src/SocketReader.cpp
+++ b/src/SocketReader.cpp
@@ -24,6 +24,7 @@
#include "ingen/SocketReader.hpp"
#include "ingen/URIMap.hpp"
#include "ingen/World.hpp"
+#include "lv2/lv2plug.in/ns/ext/atom/Forge.hpp"
#include "sord/sordmm.hpp"
#include "sratom/sratom.h"
@@ -101,11 +102,9 @@ SocketReader::run()
}
// Set up sratom and a forge to build LV2 atoms from model
- Sratom* sratom = sratom_new(map);
- LV2_Atom_Forge forge;
- lv2_atom_forge_init(&forge, map);
-
- AtomForgeSink buffer(&forge);
+ Sratom* sratom(sratom_new(map));
+ AtomForgeSink buffer;
+ lv2::atom::Forge forge(map, buffer);
SordNode* base_uri = NULL;
SordModel* model = NULL;