Fixed the audio/visual screwups

With the help of Toby, effects in the channels work and the peak
displays correctly. However the freeze-up bug is still wreaking havoc.
This commit is contained in:
Andrew Kelley
2009-10-13 02:21:13 -07:00
parent f6f4414c98
commit 95eb60f05f
3 changed files with 28 additions and 9 deletions

View File

@@ -52,6 +52,7 @@ class FxChannel : public ThreadableJob
QString m_name;
QMutex m_lock;
int m_channelIndex; // what channel index are we
bool m_queued; // are we queued up for rendering yet?
// pointers to other channels that this one sends to
QVector<fx_ch_t> m_sends;

View File

@@ -569,11 +569,16 @@ public:
}
}
template<typename T>
static void fillJobQueue( const T & _vec )
static void resetJobQueue()
{
s_jobQueue.queueSize = 0;
s_jobQueue.itemsDone = 0;
}
template<typename T>
static void fillJobQueue( const T & _vec )
{
resetJobQueue();
for( typename T::ConstIterator it = _vec.begin(); it != _vec.end(); ++it )
{
addJob( *it );