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:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user