/[svn]/linuxsampler/trunk/src/engines/gig/InstrumentResourceManager.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/engines/gig/InstrumentResourceManager.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1646 by persson, Sun Jan 20 15:04:51 2008 UTC revision 1659 by schoenebeck, Sun Feb 3 00:13:27 2008 UTC
# Line 32  Line 32 
32  #include "../../common/ResourceManager.h"  #include "../../common/ResourceManager.h"
33  #include "../../drivers/audio/AudioOutputDevice.h"  #include "../../drivers/audio/AudioOutputDevice.h"
34  #include "../InstrumentManager.h"  #include "../InstrumentManager.h"
35    #include "../../common/ArrayList.h"
36    
37  //namespace libgig = gig;  //namespace libgig = gig;
38    
# Line 91  namespace LinuxSampler { namespace gig { Line 92  namespace LinuxSampler { namespace gig {
92                                      RTList< ::gig::DimensionRegion*>* pDimRegionsInUse);                                      RTList< ::gig::DimensionRegion*>* pDimRegionsInUse);
93              void HandBackDimReg(::gig::DimensionRegion* pDimReg);              void HandBackDimReg(::gig::DimensionRegion* pDimReg);
94    
95                void TrySendNoteOnToEditors(uint8_t Key, uint8_t Velocity, ::gig::Instrument* pInstrument);
96                void TrySendNoteOffToEditors(uint8_t Key, uint8_t Velocity, ::gig::Instrument* pInstrument);
97    
98          protected:          protected:
99              // implementation of derived abstract methods from 'ResourceManager'              // implementation of derived abstract methods from 'ResourceManager'
100              virtual ::gig::Instrument* Create(instrument_id_t Key, InstrumentConsumer* pConsumer, void*& pArg);              virtual ::gig::Instrument* Create(instrument_id_t Key, InstrumentConsumer* pConsumer, void*& pArg);
# Line 116  namespace LinuxSampler { namespace gig { Line 120  namespace LinuxSampler { namespace gig {
120              void CacheInitialSamples(::gig::Sample* pSample, gig::Engine* pEngine);              void CacheInitialSamples(::gig::Sample* pSample, gig::Engine* pEngine);
121              void UncacheInitialSamples(::gig::Sample* pSample);              void UncacheInitialSamples(::gig::Sample* pSample);
122              std::vector< ::gig::Instrument*> GetInstrumentsCurrentlyUsedOf(::gig::File* pFile, bool bLock);              std::vector< ::gig::Instrument*> GetInstrumentsCurrentlyUsedOf(::gig::File* pFile, bool bLock);
123              std::set<gig::Engine*> GetEnginesUsing(::gig::Instrument* pFile, bool bLock);              std::set<gig::EngineChannel*> GetEngineChannelsUsing(::gig::Instrument* pInstrument, bool bLock);
124                std::set<gig::Engine*> GetEnginesUsing(::gig::Instrument* pInstrument, bool bLock);
125              std::set<gig::Engine*> GetEnginesUsing(::gig::File* pFile, bool bLock);              std::set<gig::Engine*> GetEnginesUsing(::gig::File* pFile, bool bLock);
126              bool SampleReferencedByInstrument(::gig::Sample* pSample, ::gig::Instrument* pInstrument);              bool SampleReferencedByInstrument(::gig::Sample* pSample, ::gig::Instrument* pInstrument);
127              void SuspendEnginesUsing(::gig::Instrument* pInstrument);              void SuspendEnginesUsing(::gig::Instrument* pInstrument);
# Line 133  namespace LinuxSampler { namespace gig { Line 138  namespace LinuxSampler { namespace gig {
138              std::map< ::gig::Sample*, int> SampleRefCount; ///< contains samples that are still in use but belong to a released instrument              std::map< ::gig::Sample*, int> SampleRefCount; ///< contains samples that are still in use but belong to a released instrument
139    
140              Mutex InstrumentEditorProxiesMutex; ///< protects the 'InstrumentEditorProxies' map              Mutex InstrumentEditorProxiesMutex; ///< protects the 'InstrumentEditorProxies' map
141              std::map<InstrumentEditor*, InstrumentConsumer*> InstrumentEditorProxies; ///< here we store the objects that react on instrument specific notifications on behalf of the respective instrument editor              ArrayList<InstrumentConsumer*> InstrumentEditorProxies; ///< here we store the objects that react on instrument specific notifications on behalf of the respective instrument editor
142              std::set<Engine*> suspendedEngines; ///< all engines currently completely suspended              std::set<Engine*> suspendedEngines; ///< all engines currently completely suspended
143              Mutex             suspendedEnginesMutex; ///< protects 'suspendedEngines' set              Mutex             suspendedEnginesMutex; ///< protects 'suspendedEngines' set
144      };      };

Legend:
Removed from v.1646  
changed lines
  Added in v.1659

  ViewVC Help
Powered by ViewVC