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, 2006 Christian Schoenebeck * |
* Copyright (C) 2005 - 2007 Christian Schoenebeck * |
7 |
* * |
* * |
8 |
* This library is free software; you can redistribute it and/or modify * |
* This library 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 * |
25 |
#define __LS_INSTRUMENTMANAGER_H__ |
#define __LS_INSTRUMENTMANAGER_H__ |
26 |
|
|
27 |
#include "../common/global.h" |
#include "../common/global.h" |
28 |
|
#include "../common/Exception.h" |
29 |
|
|
30 |
#include <vector> |
#include <vector> |
31 |
|
|
34 |
// just symbol prototyping |
// just symbol prototyping |
35 |
class EngineChannel; |
class EngineChannel; |
36 |
|
|
37 |
|
/** |
38 |
|
* Will be thrown by InstrumentManager implementations on errors. |
39 |
|
*/ |
40 |
|
class InstrumentManagerException : public Exception { |
41 |
|
public: |
42 |
|
InstrumentManagerException(String msg) : Exception(msg) {} |
43 |
|
}; |
44 |
|
|
45 |
/** @brief Abstract interface class for InstrumentManagers. |
/** @brief Abstract interface class for InstrumentManagers. |
46 |
* |
* |
47 |
* Sampler engines should provide an InstrumentManager for allowing |
* Sampler engines should provide an InstrumentManager for allowing |
119 |
* This method has to be implemented by the descendant. |
* This method has to be implemented by the descendant. |
120 |
*/ |
*/ |
121 |
virtual String GetInstrumentName(instrument_id_t ID) = 0; |
virtual String GetInstrumentName(instrument_id_t ID) = 0; |
122 |
|
|
123 |
|
virtual String GetInstrumentTypeName(instrument_id_t ID) = 0; |
124 |
|
|
125 |
|
virtual String GetInstrumentTypeVersion(instrument_id_t ID) = 0; |
126 |
|
|
127 |
|
virtual void LaunchInstrumentEditor(instrument_id_t ID) throw (InstrumentManagerException) = 0; |
128 |
}; |
}; |
129 |
|
|
130 |
}; |
} |
131 |
|
|
132 |
#endif // __LS_INSTRUMENTMANAGER_H__ |
#endif // __LS_INSTRUMENTMANAGER_H__ |