Trying an experiment with a thread for playing streamed sounds

This commit is contained in:
Mark Vejvoda
2010-05-01 04:34:23 +00:00
parent ff592be457
commit a911088d39
7 changed files with 176 additions and 4 deletions

View File

@@ -36,6 +36,34 @@ public:
void setTechDataPaths(vector<string> techDataPaths) { this->techDataPaths = techDataPaths; }
};
// =====================================================
// class SimpleTaskThread
// =====================================================
//
// This interface describes the methods a callback object must implement
//
class SimpleTaskCallbackInterface {
public:
virtual void simpleTask() = 0;
};
class SimpleTaskThread : public BaseThread
{
protected:
SimpleTaskCallbackInterface *simpleTaskInterface;
unsigned int executionCount;
unsigned int millisecsBetweenExecutions;
public:
SimpleTaskThread();
SimpleTaskThread(SimpleTaskCallbackInterface *simpleTaskInterface,
unsigned int executionCount=0,
unsigned int millisecsBetweenExecutions=0);
virtual void execute();
};
}}//end namespace
#endif