Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'intern/audaspace/intern/AUD_SequencerEntry.h')
-rw-r--r--intern/audaspace/intern/AUD_SequencerEntry.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/intern/audaspace/intern/AUD_SequencerEntry.h b/intern/audaspace/intern/AUD_SequencerEntry.h
index 5c68b4c7ab2..71e3f8b8908 100644
--- a/intern/audaspace/intern/AUD_SequencerEntry.h
+++ b/intern/audaspace/intern/AUD_SequencerEntry.h
@@ -36,6 +36,8 @@
#include "AUD_AnimateableProperty.h"
#include "AUD_IFactory.h"
+#include <pthread.h>
+
class AUD_SequencerEntry
{
friend class AUD_SequencerHandle;
@@ -60,6 +62,9 @@ private:
float m_cone_angle_inner;
float m_cone_volume_outer;
+ /// The mutex for locking.
+ pthread_mutex_t m_mutex;
+
AUD_AnimateableProperty m_volume;
AUD_AnimateableProperty m_panning;
AUD_AnimateableProperty m_pitch;
@@ -68,6 +73,17 @@ private:
public:
AUD_SequencerEntry(AUD_Reference<AUD_IFactory> sound, float begin, float end, float skip, int id);
+ virtual ~AUD_SequencerEntry();
+
+ /**
+ * Locks the entry.
+ */
+ void lock();
+
+ /**
+ * Unlocks the previously locked entry.
+ */
+ void unlock();
void setSound(AUD_Reference<AUD_IFactory> sound);