Defer updates to SampleBuffer
Removed global lock from the Mixer
This commit is contained in:
@@ -43,6 +43,7 @@
|
||||
#include "Mixer.h"
|
||||
#include "NotePlayHandle.h"
|
||||
#include "Knob.h"
|
||||
#include "SampleBuffer.h"
|
||||
#include "Song.h"
|
||||
#include "ConfigManager.h"
|
||||
#include "endian_handling.h"
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
#include <QList>
|
||||
#include <QMutex>
|
||||
#include <QMutexLocker>
|
||||
#include <samplerate.h>
|
||||
|
||||
#include "Instrument.h"
|
||||
#include "PixmapButton.h"
|
||||
@@ -37,7 +38,6 @@
|
||||
#include "Knob.h"
|
||||
#include "LcdSpinBox.h"
|
||||
#include "LedCheckbox.h"
|
||||
#include "SampleBuffer.h"
|
||||
#include "MemoryManager.h"
|
||||
#include "gig.h"
|
||||
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
#include "Mixer.h"
|
||||
#include "NotePlayHandle.h"
|
||||
#include "Knob.h"
|
||||
#include "SampleBuffer.h"
|
||||
#include "Song.h"
|
||||
|
||||
#include "patches_dialog.h"
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
#define SF2_PLAYER_H
|
||||
|
||||
#include <QMutex>
|
||||
#include <samplerate.h>
|
||||
|
||||
#include "Instrument.h"
|
||||
#include "PixmapButton.h"
|
||||
@@ -36,7 +37,6 @@
|
||||
#include "LcdSpinBox.h"
|
||||
#include "LedCheckbox.h"
|
||||
#include "fluidsynth.h"
|
||||
#include "SampleBuffer.h"
|
||||
#include "MemoryManager.h"
|
||||
|
||||
class sf2InstrumentView;
|
||||
|
||||
@@ -644,7 +644,7 @@ void VestigeInstrumentView::openPlugin()
|
||||
{
|
||||
return;
|
||||
}
|
||||
Engine::mixer()->lock();
|
||||
Engine::mixer()->requestChangeInModel();
|
||||
|
||||
if (m_vi->p_subWindow != NULL) {
|
||||
delete m_vi->p_subWindow;
|
||||
@@ -652,7 +652,7 @@ void VestigeInstrumentView::openPlugin()
|
||||
}
|
||||
|
||||
m_vi->loadFile( ofd.selectedFiles()[0] );
|
||||
Engine::mixer()->unlock();
|
||||
Engine::mixer()->doneChangeInModel();
|
||||
if( m_vi->m_plugin && m_vi->m_plugin->pluginWidget() )
|
||||
{
|
||||
m_vi->m_plugin->pluginWidget()->setWindowIcon(
|
||||
|
||||
Reference in New Issue
Block a user