summaryrefslogtreecommitdiffstats
path: root/src/uscxml/plugins/invoker/audio/OpenALInvoker.h
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-08-13 10:07:32 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-08-13 10:07:32 (GMT)
commit459f406eb2a36d393bd3a2b6aa3d63d86eb99c07 (patch)
tree35593bb978fee75bb7547f3d2c84a9039413fe1f /src/uscxml/plugins/invoker/audio/OpenALInvoker.h
parentbeac3e74f703148085947d75da6fdaa9fd7472b4 (diff)
downloaduscxml-459f406eb2a36d393bd3a2b6aa3d63d86eb99c07.zip
uscxml-459f406eb2a36d393bd3a2b6aa3d63d86eb99c07.tar.gz
uscxml-459f406eb2a36d393bd3a2b6aa3d63d86eb99c07.tar.bz2
Started Java datamodel and fixed memory leaks
Diffstat (limited to 'src/uscxml/plugins/invoker/audio/OpenALInvoker.h')
-rw-r--r--src/uscxml/plugins/invoker/audio/OpenALInvoker.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/uscxml/plugins/invoker/audio/OpenALInvoker.h b/src/uscxml/plugins/invoker/audio/OpenALInvoker.h
index c0ed842..086bfe8 100644
--- a/src/uscxml/plugins/invoker/audio/OpenALInvoker.h
+++ b/src/uscxml/plugins/invoker/audio/OpenALInvoker.h
@@ -24,7 +24,7 @@ class OpenALSource {
public:
OpenALSource();
~OpenALSource();
-
+
OpenALPlayer* player;
char buffer[ALPLAY_AUDIO_BUFFER_SIZE];
bool loop;
@@ -35,7 +35,7 @@ public:
URL file;
PCMConverter* transform;
};
-
+
class OpenALInvoker : public InvokerImpl {
public:
OpenALInvoker();
@@ -49,7 +49,7 @@ public:
names.insert("http://uscxml.tk.informatik.tu-darmstadt.de/#openal");
return names;
}
-
+
virtual Data getDataModelVariables();
virtual void send(const SendRequest& req);
virtual void cancel(const std::string sendId);
@@ -59,20 +59,20 @@ protected:
std::map<std::string, OpenALSource*> _sources;
ALCcontext* _alContext;
ALCdevice* _alDevice;
-
+
tthread::recursive_mutex _mutex;
tthread::thread* _thread;
tthread::condition_variable _sourcesAvailable;
bool _isStarted;
bool _isRunning;
-
+
static void fillBuffers(void* userdata);
void start();
void notifyOfEnd(OpenALSource*);
void notifyOfLoop(OpenALSource*);
-
+
float posToRadian(const std::string& pos);
void getPosFromParams(const std::multimap<std::string, std::string>& params, float* position);