/[svn]/linuxsampler/trunk/src/drivers/midi/MidiInputPort.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/drivers/midi/MidiInputPort.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 274 by schoenebeck, Sat Oct 9 00:46:18 2004 UTC revision 411 by schoenebeck, Sat Feb 26 02:01:14 2005 UTC
# Line 3  Line 3 
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  *
# Line 27  Line 28 
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    
# Line 96  namespace LinuxSampler { Line 97  namespace LinuxSampler {
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.
# Line 193  namespace LinuxSampler { Line 194  namespace LinuxSampler {
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

Legend:
Removed from v.274  
changed lines
  Added in v.411

  ViewVC Help
Powered by ViewVC