25 |
#ifndef __LS_INSTRUMENTMANAGERBASE_H__ |
#ifndef __LS_INSTRUMENTMANAGERBASE_H__ |
26 |
#define __LS_INSTRUMENTMANAGERBASE_H__ |
#define __LS_INSTRUMENTMANAGERBASE_H__ |
27 |
|
|
28 |
#include "InstrumentManager.h" |
#include "common/AbstractInstrumentManager.h" |
29 |
|
#include "../drivers/audio/AudioOutputDeviceFactory.h" |
30 |
#include "AbstractEngine.h" |
#include "AbstractEngine.h" |
31 |
#include "AbstractEngineChannel.h" |
#include "AbstractEngineChannel.h" |
|
#include "../common/ResourceManager.h" |
|
|
#include "../common/global_private.h" |
|
|
#include "../drivers/audio/AudioOutputDeviceFactory.h" |
|
32 |
|
|
33 |
// We need to know the maximum number of sample points which are going to |
// We need to know the maximum number of sample points which are going to |
34 |
// be processed for each render cycle of the audio output driver, to know |
// be processed for each render cycle of the audio output driver, to know |
40 |
namespace LinuxSampler { |
namespace LinuxSampler { |
41 |
|
|
42 |
template <class F /* Instrument File */, class I /* Instrument */, class R /* Regions */, class S /*Sample */> |
template <class F /* Instrument File */, class I /* Instrument */, class R /* Regions */, class S /*Sample */> |
43 |
class InstrumentManagerBase : public InstrumentManager, public ResourceManager<InstrumentManager::instrument_id_t, I> { |
class InstrumentManagerBase : public AbstractInstrumentManager, public ResourceManager<InstrumentManager::instrument_id_t, I> { |
44 |
public: |
public: |
45 |
struct region_info_t { |
struct region_info_t { |
46 |
int refCount; |
int refCount; |
54 |
|
|
55 |
typedef ResourceConsumer<I> InstrumentConsumer; |
typedef ResourceConsumer<I> InstrumentConsumer; |
56 |
|
|
57 |
InstrumentManagerBase() { } |
InstrumentManagerBase() : AbstractInstrumentManager() { } |
58 |
virtual ~InstrumentManagerBase() { } |
virtual ~InstrumentManagerBase() { } |
59 |
|
|
60 |
virtual InstrumentEditor* LaunchInstrumentEditor(instrument_id_t ID, void* pUserData = NULL) throw (InstrumentManagerException) OVERRIDE { |
virtual InstrumentEditor* LaunchInstrumentEditor(instrument_id_t ID, void* pUserData = NULL) throw (InstrumentManagerException) OVERRIDE { |