made sampleBuffer reentrant so that several threads can use sampleBuffer::play() simultanously - fixes crashes when using AudioFileProcessor or Patman in multithreaded mode

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@770 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-03-07 15:02:09 +00:00
parent b326a99f98
commit 369d96f361

View File

@@ -581,8 +581,6 @@ bool FASTCALL sampleBuffer::play( sampleFrame * _ab, handleState * _state,
const float _freq,
const bool _looped ) const
{
// static QMutex m;
// QMutexLocker ml( &m );
engine::getMixer()->clearAudioBuffer( _ab, _frames );
if( m_endFrame == 0 || _frames == 0 )