mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 07:57:30 +02:00
remove the Agent static instance
This commit is contained in:
parent
0eae0f129c
commit
cdfb232078
2 changed files with 1 additions and 5 deletions
|
@ -16,15 +16,13 @@
|
||||||
#include "Agent.h"
|
#include "Agent.h"
|
||||||
#include "voxels/VoxelScriptingInterface.h"
|
#include "voxels/VoxelScriptingInterface.h"
|
||||||
|
|
||||||
Agent* Agent::_staticInstance = NULL;
|
|
||||||
|
|
||||||
Agent::Agent(const unsigned char* dataBuffer, int numBytes) :
|
Agent::Agent(const unsigned char* dataBuffer, int numBytes) :
|
||||||
Assignment(dataBuffer, numBytes),
|
Assignment(dataBuffer, numBytes),
|
||||||
_shouldStop(false)
|
_shouldStop(false)
|
||||||
{
|
{
|
||||||
setStaticInstance(this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void Agent::stop() {
|
void Agent::stop() {
|
||||||
_shouldStop = true;
|
_shouldStop = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,8 +30,6 @@ signals:
|
||||||
void willSendAudioDataCallback();
|
void willSendAudioDataCallback();
|
||||||
void willSendVisualDataCallback();
|
void willSendVisualDataCallback();
|
||||||
private:
|
private:
|
||||||
static void setStaticInstance(Agent* staticInstance);
|
|
||||||
static Agent* _staticInstance;
|
|
||||||
static QScriptValue AudioInjectorConstructor(QScriptContext *context, QScriptEngine *engine);
|
static QScriptValue AudioInjectorConstructor(QScriptContext *context, QScriptEngine *engine);
|
||||||
|
|
||||||
bool volatile _shouldStop;
|
bool volatile _shouldStop;
|
||||||
|
|
Loading…
Reference in a new issue