Make it work with MemoryManager

This commit is contained in:
Garrett
2014-11-18 08:30:31 -08:00
parent 702e2a1ee3
commit 3f641c2c55
2 changed files with 4 additions and 1 deletions

View File

@@ -94,7 +94,7 @@ GigInstrument::GigInstrument( InstrumentTrack * _instrument_track ) :
m_RandomSeed( 0 ),
m_currentKeyDimension( 0 )
{
InstrumentPlayHandle * iph = new InstrumentPlayHandle( this );
InstrumentPlayHandle * iph = new InstrumentPlayHandle( this, _instrument_track );
engine::mixer()->addPlayHandle( iph );
updateSampleRate();

View File

@@ -38,6 +38,7 @@
#include "LcdSpinBox.h"
#include "led_checkbox.h"
#include "SampleBuffer.h"
#include "MemoryManager.h"
#include "gig.h"
class GigInstrumentView;
@@ -207,6 +208,8 @@ public:
class GigInstrument : public Instrument
{
Q_OBJECT
MM_OPERATORS
mapPropertyFromModel( int, getBank, setBank, m_bankNum );
mapPropertyFromModel( int, getPatch, setPatch, m_patchNum );