diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-21 17:33:41 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-07-06 17:34:18 +0200 |
commit | 6c6c3ba697e8feef38fa85cb9d0c088b3a8d0df5 (patch) | |
tree | e1ba19ba9a5406ad06a60c8fbd23c2c1008754fa /proto-osc/proto.hpp | |
parent | e0507257a41c29fa2e9ac28f36470023a72c39c6 (diff) |
proto/osc: add incomplete code
Finishing it is just a bit more work.
See: #1264
Diffstat (limited to 'proto-osc/proto.hpp')
-rw-r--r-- | proto-osc/proto.hpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/proto-osc/proto.hpp b/proto-osc/proto.hpp new file mode 100644 index 00000000..53a5dee4 --- /dev/null +++ b/proto-osc/proto.hpp @@ -0,0 +1,29 @@ +#pragma once + +/* Copyright (c) 2023 Stanislaw Halik <sthalik@misaki.pl> + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + */ + +#include "settings.hpp" +#include "api/plugin-api.hpp" +#include <QUdpSocket> +#include <QHostAddress> + +class osc_proto : public QObject, public IProtocol +{ + Q_OBJECT + + osc_settings s; + QUdpSocket sock; + QHostAddress dest; + unsigned short port = 0; + +public: + osc_proto(); + module_status initialize() override; + void pose(const double *headpose, const double*) override; + QString game_name() override { return tr("Open Sound Control"); } +}; |