-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqml_plugin.cpp
34 lines (25 loc) · 1001 Bytes
/
qml_plugin.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#include "qml_plugin.hpp"
#include <source/surround.hpp>
#include <QQmlEngine>
#include <qqml.h>
//-------------------------------------------------------------------------------------------------
void
qml_plugin::registerTypes(const char *uri)
//-------------------------------------------------------------------------------------------------
{
Q_UNUSED(uri)
qmlRegisterUncreatableType<SpeakerNode, 1>
("WPN114.Audio.Spatial", 1, 1, "SpeakerNode", "Uncreatable");
qmlRegisterType<SingleSpeaker, 1>
("WPN114.Audio.Spatial", 1, 1, "Speaker");
qmlRegisterType<SpeakerPair, 1>
("WPN114.Audio.Spatial", 1, 1, "SpeakerPair");
qmlRegisterType<SpeakerRing, 1>
("WPN114.Audio.Spatial", 1, 1, "SpeakerRing");
qmlRegisterType<SpeakerDome, 1>
("WPN114.Audio.Spatial", 1, 1, "SpeakerDome");
qmlRegisterType<SpeakerSetup, 1>
("WPN114.Audio.Spatial", 1, 1, "SpeakerSetup");
qmlRegisterType<Fields, 1>
("WPN114.Audio.Spatial", 1, 1, "Fields");
}