Skip to content

Commit

Permalink
Closes LMMS#5050: Add Mixer threading comments
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
JohannesLorenz committed Jul 6, 2019
1 parent 68cb917 commit 72770f7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/Mixer.h
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ class LMMS_EXPORT Mixer : public QObject
inline bool isMetronomeActive() const { return m_metronomeActive; }
inline void setMetronomeActive(bool value = true) { m_metronomeActive = value; }

//! Block until a change in model can be done (i.e. wait for other threads)
void requestChangeInModel();
void doneChangeInModel();

Expand Down Expand Up @@ -366,6 +367,8 @@ class LMMS_EXPORT Mixer : public QObject

void clearInternal();

//! Function to be called before processing audio
//! Blocks if there are currently changes done in model
void runChangesInModel();

bool m_renderOnly;
Expand Down

0 comments on commit 72770f7

Please sign in to comment.