From 6ed33b32411a60dbedfd020da366a6c0ad443364 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Sat, 5 Jul 2008 23:25:58 +0000 Subject: [PATCH] cleanups git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1281 0778d3d1-df1d-0410-868b-ea421aaaa00d --- src/core/mixer.cpp | 31 ++----------------------------- 1 file changed, 2 insertions(+), 29 deletions(-) diff --git a/src/core/mixer.cpp b/src/core/mixer.cpp index c082d646d..3bbb549cc 100644 --- a/src/core/mixer.cpp +++ b/src/core/mixer.cpp @@ -554,40 +554,13 @@ const surroundSampleFrame * mixer::renderNextBuffer( void ) mixerWorkerThread::PlayHandle, !( *it )->done() && !( *it )->supportsParallelizing() ); -// we have to process all note-play-handles of a monophonic instrument by the -// same thread serially as monophonic instruments rely on processing note-play- -// handles in correct order -/* QHash h; - for( mixerWorkerThread::jobQueueItems::iterator it = - jq.items.begin(); it != jq.items.end(); ++it ) - { -#define COND_NPH static_cast( it->job )->type() == playHandle::NotePlayHandle -#define COND_MONOPHONIC static_cast( it->job )-> \ - getInstrumentTrack()-> \ - getInstrument()->isMonophonic() -if( COND_NPH ) -{ - if( COND_MONOPHONIC ) - { - notePlayHandle * n = static_cast( it->job ); - if( h.contains( n->getInstrumentTrack() ) ) - { - it->workerID = h[n->getInstrumentTrack()]; - } - else - { - h[n->getInstrumentTrack()] = it->workerID; - } - } -} - }*/ DISTRIBUTE_JOB_QUEUE(jq); for( playHandleVector::iterator it = par_hndls.begin(); it != par_hndls.end(); ++it ) { ( *it )->waitForWorkerThread(); } - WAIT_FOR_JOBS();// h.size() > 0 && ( COND_NPH ? !COND_MONOPHONIC : TRUE ) ); + WAIT_FOR_JOBS(); } else { @@ -610,7 +583,7 @@ if( COND_NPH ) { delete n; m_playHandles.erase( - m_playHandles.begin() + idx ); + m_playHandles.begin() + idx ); } else {