blob: 53a5dee49a6afe5d5df044bfc3e8b3d5b1e941fc (
plain)
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
|
#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"); }
};
|