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 * |
* Copyright (C) 2005, 2006 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 * |
30 |
#include <vector> |
#include <vector> |
31 |
|
|
32 |
#include "../../common/global.h" |
#include "../../common/global.h" |
33 |
#include "../../common/LinuxSamplerException.h" |
#include "../../common/Exception.h" |
34 |
#include "../DeviceParameter.h" |
#include "../DeviceParameter.h" |
35 |
#include "MidiInputPort.h" |
#include "MidiInputPort.h" |
36 |
#include "../../engines/common/Engine.h" |
#include "../../engines/common/Engine.h" |
47 |
* (which should be done in the constructor of the MidiInputDevice |
* (which should be done in the constructor of the MidiInputDevice |
48 |
* descendant). |
* descendant). |
49 |
*/ |
*/ |
50 |
class MidiInputException : public LinuxSamplerException { |
class MidiInputException : public Exception { |
51 |
public: |
public: |
52 |
MidiInputException(const std::string& msg) : LinuxSamplerException(msg) {} |
MidiInputException(const std::string& msg) : Exception(msg) {} |
53 |
}; |
}; |
54 |
|
|
55 |
/** Abstract base class for MIDI input drivers in LinuxSampler |
/** Abstract base class for MIDI input drivers in LinuxSampler |
80 |
virtual bool Mandatory(); |
virtual bool Mandatory(); |
81 |
virtual std::map<String,DeviceCreationParameter*> DependsAsParameters(); |
virtual std::map<String,DeviceCreationParameter*> DependsAsParameters(); |
82 |
virtual optional<bool> DefaultAsBool(std::map<String,String> Parameters); |
virtual optional<bool> DefaultAsBool(std::map<String,String> Parameters); |
83 |
virtual void OnSetValue(bool b) throw (LinuxSamplerException); |
virtual void OnSetValue(bool b) throw (Exception); |
84 |
static String Name(); |
static String Name(); |
85 |
}; |
}; |
86 |
|
|
101 |
virtual optional<int> RangeMinAsInt(std::map<String,String> Parameters); |
virtual optional<int> RangeMinAsInt(std::map<String,String> Parameters); |
102 |
virtual optional<int> RangeMaxAsInt(std::map<String,String> Parameters); |
virtual optional<int> RangeMaxAsInt(std::map<String,String> Parameters); |
103 |
virtual std::vector<int> PossibilitiesAsInt(std::map<String,String> Parameters); |
virtual std::vector<int> PossibilitiesAsInt(std::map<String,String> Parameters); |
104 |
virtual void OnSetValue(int i) throw (LinuxSamplerException); |
virtual void OnSetValue(int i) throw (Exception); |
105 |
static String Name(); |
static String Name(); |
106 |
}; |
}; |
107 |
|
|