mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-22 16:23:18 +02:00
37 lines
749 B
C++
37 lines
749 B
C++
//
|
|
// Agent.h
|
|
// hifi
|
|
//
|
|
// Created by Stephen Birarda on 7/1/13.
|
|
// Copyright (c) 2013 HighFidelity, Inc. All rights reserved.
|
|
//
|
|
|
|
#ifndef __hifi__Agent__
|
|
#define __hifi__Agent__
|
|
|
|
#include <vector>
|
|
|
|
#include <QtScript/QScriptEngine>
|
|
#include <QtCore/QObject>
|
|
#include <QtCore/QUrl>
|
|
|
|
#include <Assignment.h>
|
|
|
|
class Agent : public Assignment {
|
|
Q_OBJECT
|
|
public:
|
|
Agent(const unsigned char* dataBuffer, int numBytes);
|
|
|
|
void run();
|
|
public slots:
|
|
void stop();
|
|
signals:
|
|
void willSendAudioDataCallback();
|
|
void willSendVisualDataCallback();
|
|
private:
|
|
static QScriptValue AudioInjectorConstructor(QScriptContext *context, QScriptEngine *engine);
|
|
|
|
bool volatile _shouldStop;
|
|
};
|
|
|
|
#endif /* defined(__hifi__Agent__) */
|