diff options
author | Joerg Mueller <nexyon@gmail.com> | 2011-08-16 17:00:55 +0400 |
---|---|---|
committer | Joerg Mueller <nexyon@gmail.com> | 2011-08-16 17:00:55 +0400 |
commit | 02d2472baacd8ac091a29392a2bc9ac8693fb5e7 (patch) | |
tree | dfd8a80ce8c1771a318a46120c81514836ed4b2d /intern/audaspace/jack | |
parent | a67562e73cbc2f4a9641fbc4d1147b4b2cc935c4 (diff) |
3D Audio GSoC:
Code documentation.
Also:
* Fix: rlint for MSVC.
* Minor other small fixes/changes.
Diffstat (limited to 'intern/audaspace/jack')
-rw-r--r-- | intern/audaspace/jack/AUD_JackDevice.h | 42 |
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(); }; |