/[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 2012 by iliev, Fri Oct 23 17:53:17 2009 UTC revision 2687 by schoenebeck, Sun Jan 4 17:16:05 2015 UTC
# Line 3  Line 3 
3   *   LinuxSampler - modular, streaming capable sampler                     *   *   LinuxSampler - modular, streaming capable sampler                     *
4   *                                                                         *   *                                                                         *
5   *   Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck   *   *   Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck   *
6   *   Copyright (C) 2005 - 2009 Christian Schoenebeck                       *   *   Copyright (C) 2005 - 2012 Christian Schoenebeck                       *
7   *                                                                         *   *                                                                         *
8   *   This program is free software; you can redistribute it and/or modify  *   *   This program is free software; you can redistribute it and/or modify  *
9   *   it under the terms of the GNU General Public License as published by  *   *   it under the terms of the GNU General Public License as published by  *
# Line 46  namespace LinuxSampler { namespace gig { Line 46  namespace LinuxSampler { namespace gig {
46  #include "../../plugins/InstrumentEditor.h"  #include "../../plugins/InstrumentEditor.h"
47    
48  namespace LinuxSampler { namespace gig {  namespace LinuxSampler { namespace gig {
49    
50      class Engine;      class Engine;
51      class EngineChannel;      class EngineChannel;
52    
# Line 67  namespace LinuxSampler { namespace gig { Line 68  namespace LinuxSampler { namespace gig {
68              static void OnInstrumentLoadingProgress(::gig::progress_t* pProgress);              static void OnInstrumentLoadingProgress(::gig::progress_t* pProgress);
69    
70              // implementation of derived abstract methods from 'InstrumentManager'              // implementation of derived abstract methods from 'InstrumentManager'
             virtual std::vector<instrument_id_t> Instruments();  
71              virtual String GetInstrumentName(instrument_id_t ID);              virtual String GetInstrumentName(instrument_id_t ID);
72              virtual String GetInstrumentDataStructureName(instrument_id_t ID);              virtual String GetInstrumentDataStructureName(instrument_id_t ID);
73              virtual String GetInstrumentDataStructureVersion(instrument_id_t ID);              virtual String GetInstrumentDataStructureVersion(instrument_id_t ID);
74              virtual InstrumentEditor* LaunchInstrumentEditor(instrument_id_t ID, void* pUserData = NULL) throw (InstrumentManagerException);              virtual InstrumentEditor* LaunchInstrumentEditor(LinuxSampler::EngineChannel* pEngineChannel, instrument_id_t ID, void* pUserData = NULL) throw (InstrumentManagerException) OVERRIDE;
75              virtual std::vector<instrument_id_t> GetInstrumentFileContent(String File) throw (InstrumentManagerException);              virtual std::vector<instrument_id_t> GetInstrumentFileContent(String File) throw (InstrumentManagerException);
76              virtual instrument_info_t GetInstrumentInfo(instrument_id_t ID) throw (InstrumentManagerException);              virtual instrument_info_t GetInstrumentInfo(instrument_id_t ID) throw (InstrumentManagerException);
77    
# Line 92  namespace LinuxSampler { namespace gig { Line 92  namespace LinuxSampler { namespace gig {
92              // implementation of derived abstract methods from 'ResourceManager'              // implementation of derived abstract methods from 'ResourceManager'
93              virtual ::gig::Instrument* Create(instrument_id_t Key, InstrumentConsumer* pConsumer, void*& pArg);              virtual ::gig::Instrument* Create(instrument_id_t Key, InstrumentConsumer* pConsumer, void*& pArg);
94              virtual void               Destroy(::gig::Instrument* pResource, void* pArg);              virtual void               Destroy(::gig::Instrument* pResource, void* pArg);
             virtual void               OnBorrow(::gig::Instrument* pResource, InstrumentConsumer* pConsumer, void*& pArg);  
             virtual void               CacheInitialSamples(::gig::Sample* pSample, AbstractEngine* pEngine);  
             virtual void               CacheInitialSamples(::gig::Sample* pSample, EngineChannel* pEngineChannel);  
95              virtual void               DeleteRegionIfNotUsed(::gig::DimensionRegion* pRegion, region_info_t* pRegInfo);              virtual void               DeleteRegionIfNotUsed(::gig::DimensionRegion* pRegion, region_info_t* pRegInfo);
96              virtual void               DeleteSampleIfNotUsed(::gig::Sample* pSample, region_info_t* pRegInfo);              virtual void               DeleteSampleIfNotUsed(::gig::Sample* pSample, region_info_t* pRegInfo);
97          private:          private:
98                void                       CacheInitialSamples(::gig::Sample* pSample, AbstractEngine* pEngine);
99                void                       CacheInitialSamples(::gig::Sample* pSample, EngineChannel* pEngineChannel);
100                void                       CacheInitialSamples(::gig::Sample* pSample, uint maxSamplesPerCycle);
101    
102              typedef ResourceConsumer< ::gig::File> GigConsumer;              typedef ResourceConsumer< ::gig::File> GigConsumer;
103    
104              class GigResourceManager : public ResourceManager<String, ::gig::File> {              class GigResourceManager : public ResourceManager<String, ::gig::File> {

Legend:
Removed from v.2012  
changed lines
  Added in v.2687

  ViewVC Help
Powered by ViewVC