mirror of
https://github.com/JulianGro/overte.git
synced 2025-06-03 01:40:27 +02:00
initial connection of Android client to audio mixer
This commit is contained in:
parent
e4a9e429e0
commit
25805cbe78
3 changed files with 8 additions and 4 deletions
|
@ -28,6 +28,7 @@ Client::Client(QObject* parent) :
|
||||||
|
|
||||||
void Client::setupNetworking() {
|
void Client::setupNetworking() {
|
||||||
// setup the NodeList for this client
|
// setup the NodeList for this client
|
||||||
|
DependencyManager::registerInheritance<LimitedNodeList, NodeList>();
|
||||||
auto nodeList = DependencyManager::set<NodeList>(NodeType::Agent, 0);
|
auto nodeList = DependencyManager::set<NodeList>(NodeType::Agent, 0);
|
||||||
|
|
||||||
// while datagram processing remains simple for targets using Client, we'll handle datagrams
|
// while datagram processing remains simple for targets using Client, we'll handle datagrams
|
||||||
|
|
|
@ -20,10 +20,10 @@ class Client : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
Client(QObject* parent = 0);
|
Client(QObject* parent = 0);
|
||||||
private slots:
|
|
||||||
void processDatagrams();
|
|
||||||
private:
|
private:
|
||||||
void setupNetworking();
|
void setupNetworking();
|
||||||
|
private slots:
|
||||||
|
void processDatagrams();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // hifi_Client_h
|
#endif // hifi_Client_h
|
||||||
|
|
|
@ -11,10 +11,13 @@
|
||||||
|
|
||||||
#include <QtWidgets/QInputDialog>
|
#include <QtWidgets/QInputDialog>
|
||||||
|
|
||||||
|
#include <NodeList.h>
|
||||||
|
|
||||||
#include "RenderingClient.h"
|
#include "RenderingClient.h"
|
||||||
|
|
||||||
RenderingClient::RenderingClient(QObject *parent) :
|
RenderingClient::RenderingClient(QObject *parent) :
|
||||||
Client(parent)
|
Client(parent)
|
||||||
{
|
{
|
||||||
|
// tell the NodeList which node types all rendering clients will want to know about
|
||||||
}
|
DependencyManager::get<NodeList>()->addSetOfNodeTypesToNodeInterestSet(NodeSet() << NodeType::AudioMixer);
|
||||||
|
}
|
Loading…
Reference in a new issue