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/jack/AUD_JackDevice.h')
-rw-r--r--intern/audaspace/jack/AUD_JackDevice.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/intern/audaspace/jack/AUD_JackDevice.h b/intern/audaspace/jack/AUD_JackDevice.h
index 656496405db..f0b7573156d 100644
--- a/intern/audaspace/jack/AUD_JackDevice.h
+++ b/intern/audaspace/jack/AUD_JackDevice.h
@@ -122,12 +122,26 @@ private:
*/
pthread_t m_mixingThread;
+ /**
+ * Mutex for mixing.
+ */
pthread_mutex_t m_mixingLock;
+ /**
+ * Condition for mixing.
+ */
pthread_cond_t m_mixingCondition;
+ /**
+ * Mixing thread function.
+ * \param device The this pointer.
+ * \return NULL.
+ */
static void* runMixingThread(void* device);
+ /**
+ * Updates the ring buffers.
+ */
void updateRingBuffers();
// hide copy constructor and operator=
@@ -153,11 +167,39 @@ public:
*/
virtual ~AUD_JackDevice();
+ /**
+ * Starts jack transport playback.
+ */
void startPlayback();
+
+ /**
+ * Stops jack transport playback.
+ */
void stopPlayback();
+
+ /**
+ * Seeks jack transport playback.
+ * \param time The time to seek to.
+ */
void seekPlayback(float time);
+
+ /**
+ * Sets the sync callback for jack transport playback.
+ * \param sync The callback function.
+ * \param data The data for the function.
+ */
void setSyncCallback(AUD_syncFunction sync, void* data);
+
+ /**
+ * Retrieves the jack transport playback time.
+ * \return The current time position.
+ */
float getPlaybackPosition();
+
+ /**
+ * Returns whether jack transport plays back.
+ * \return Whether jack transport plays back.
+ */
bool doesPlayback();
};