31 |
#include "midi.h" |
#include "midi.h" |
32 |
#include "MidiInputDevice.h" |
#include "MidiInputDevice.h" |
33 |
#include "../../engines/common/EngineChannel.h" |
#include "../../engines/common/EngineChannel.h" |
34 |
|
#include "../../common/SynchronizedConfig.h" |
35 |
|
|
36 |
namespace LinuxSampler { |
namespace LinuxSampler { |
37 |
|
|
200 |
MidiInputDevice* pDevice; |
MidiInputDevice* pDevice; |
201 |
int portNumber; |
int portNumber; |
202 |
std::map<String,DeviceRuntimeParameter*> Parameters; ///< All port parameters. |
std::map<String,DeviceRuntimeParameter*> Parameters; ///< All port parameters. |
203 |
std::set<EngineChannel*> MidiChannelMap[17]; ///< Contains the list of connected engines for each MIDI channel, where index 0 points to the list of engines which are connected to all MIDI channels. Usually it's not necessary for the descendant to use this map, instead it should just use the Dispatch* methods. |
typedef std::set<EngineChannel*> MidiChannelMap_t[17]; |
204 |
|
SynchronizedConfig<MidiChannelMap_t> MidiChannelMap; ///< Contains the list of connected engines for each MIDI channel, where index 0 points to the list of engines which are connected to all MIDI channels. Usually it's not necessary for the descendant to use this map, instead it should just use the Dispatch* methods. |
205 |
Mutex MidiChannelMapMutex; ///< Used to protect the MidiChannelMap from being used at the same time by different threads. |
Mutex MidiChannelMapMutex; ///< Used to protect the MidiChannelMap from being used at the same time by different threads. |
206 |
|
|
207 |
/** |
/** |