From 369d96f36148c4dc1c81da4975ad9b266d417f0e Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Fri, 7 Mar 2008 15:02:09 +0000 Subject: [PATCH] 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 --- src/lib/sample_buffer.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/lib/sample_buffer.cpp b/src/lib/sample_buffer.cpp index f984bb89a..2b96dd87b 100644 --- a/src/lib/sample_buffer.cpp +++ b/src/lib/sample_buffer.cpp @@ -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 )