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 - 2007 Christian Schoenebeck * |
* Copyright (C) 2005 - 2008 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 * |
38 |
// just symbol prototyping |
// just symbol prototyping |
39 |
class MidiInputDevice; |
class MidiInputDevice; |
40 |
class EngineChannel; |
class EngineChannel; |
41 |
|
class VirtualMidiDevice; |
42 |
|
|
43 |
class MidiInputPort { |
class MidiInputPort { |
44 |
public: |
public: |
121 |
*/ |
*/ |
122 |
static bool RemoveSysexListener(Engine* engine); |
static bool RemoveSysexListener(Engine* engine); |
123 |
|
|
124 |
|
/** |
125 |
|
* Connects the given virtual MIDI device to this MIDI input |
126 |
|
* device. This can be used to listen to MIDI data arriving on |
127 |
|
* the MIDI input device's MIDI ports, e.g. to show an MIDI |
128 |
|
* activity indicator somewhere. |
129 |
|
*/ |
130 |
|
void Connect(VirtualMidiDevice* pDevice); |
131 |
|
|
132 |
|
/** |
133 |
|
* Disconnect the previously connected virtual MIDI device. |
134 |
|
*/ |
135 |
|
void Disconnect(VirtualMidiDevice* pDevice); |
136 |
|
|
137 |
|
|
138 |
///////////////////////////////////////////////////////////////// |
///////////////////////////////////////////////////////////////// |
139 |
// dispatch methods |
// dispatch methods |
321 |
SynchronizedConfig<MidiChannelMap_t>::Reader MidiChannelMapReader; ///< MIDI thread access to MidiChannelMap |
SynchronizedConfig<MidiChannelMap_t>::Reader MidiChannelMapReader; ///< MIDI thread access to MidiChannelMap |
322 |
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. |
323 |
SynchronizedConfig<std::set<Engine*> >::Reader SysexListenersReader; ///< MIDI thread access to SysexListeners |
SynchronizedConfig<std::set<Engine*> >::Reader SysexListenersReader; ///< MIDI thread access to SysexListeners |
324 |
|
SynchronizedConfig<std::vector<VirtualMidiDevice*> > virtualMidiDevices; |
325 |
|
SynchronizedConfig<std::vector<VirtualMidiDevice*> >::Reader virtualMidiDevicesReader; |
326 |
|
Mutex virtualMidiDevicesMutex; |
327 |
|
|
328 |
/** |
/** |
329 |
* Constructor |
* Constructor |