initial connection of Android client to audio mixer

This commit is contained in:
Stephen Birarda 2015-01-20 16:02:36 -08:00
parent e4a9e429e0
commit 25805cbe78
3 changed files with 8 additions and 4 deletions

View file

@ -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

View file

@ -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

View file

@ -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);
}