Make it work with MemoryManager
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user