Restore the FX channel lock to its former glory

In the course of 32b7e04, I removed the channel lock from FxChannel because
I was under the impression that it was only needed to prevent crashes on
channel delete. However, at least two people experience crackling audio
after it was removed (#2708). Therefore, this commit reinstates it.
This commit is contained in:
Fastigium
2016-03-27 10:05:45 +02:00
parent 47b835febe
commit 4aa725b509
2 changed files with 4 additions and 0 deletions

View File

@@ -56,6 +56,7 @@ class FxChannel : public ThreadableJob
BoolModel m_soloModel;
FloatModel m_volumeModel;
QString m_name;
QMutex m_lock;
int m_channelIndex; // what channel index are we
bool m_queued; // are we queued up for rendering yet?
bool m_muted; // are we muted? updated per period so we don't have to call m_muteModel.value() twice