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 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 * |
28 |
#include "../../common/LinuxSamplerException.h" |
#include "../../common/LinuxSamplerException.h" |
29 |
#include "../DeviceParameter.h" |
#include "../DeviceParameter.h" |
30 |
#include "MidiInputDevice.h" |
#include "MidiInputDevice.h" |
31 |
#include "../../engines/common/Engine.h" |
#include "../../engines/common/EngineChannel.h" |
32 |
|
|
33 |
namespace LinuxSampler { |
namespace LinuxSampler { |
34 |
|
|
97 |
* @param MidiChannel - MIDI channel to connect to |
* @param MidiChannel - MIDI channel to connect to |
98 |
* @throws MidiInputException if MidiChannel argument invalid |
* @throws MidiInputException if MidiChannel argument invalid |
99 |
*/ |
*/ |
100 |
void Connect(Engine* pEngine, midi_chan_t MidiChannel); |
void Connect(EngineChannel* pEngineChannel, midi_chan_t MidiChannel); |
101 |
|
|
102 |
/** |
/** |
103 |
* Disconnect given sampler engine from this MIDI input device. |
* Disconnect given sampler engine from this MIDI input device. |
104 |
* |
* |
105 |
* @param pEngine - sampler engine |
* @param pEngine - sampler engine |
106 |
*/ |
*/ |
107 |
void Disconnect(Engine* pEngine); |
void Disconnect(EngineChannel* pEngineChannel); |
108 |
|
|
109 |
/** |
/** |
110 |
* Return MIDI device where this MIDI port belongs to. |
* Return MIDI device where this MIDI port belongs to. |
194 |
MidiInputDevice* pDevice; |
MidiInputDevice* pDevice; |
195 |
int portNumber; |
int portNumber; |
196 |
std::map<String,DeviceRuntimeParameter*> Parameters; ///< All port parameters. |
std::map<String,DeviceRuntimeParameter*> Parameters; ///< All port parameters. |
197 |
std::set<Engine*> 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. |
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. |
198 |
|
|
199 |
/** |
/** |
200 |
* Constructor |
* Constructor |