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 library is free software; you can redistribute it and/or modify * |
* This library 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 * |
40 |
#include "lscpparser.h" |
#include "lscpparser.h" |
41 |
#include "lscp.h" |
#include "lscp.h" |
42 |
#include "lscpevent.h" |
#include "lscpevent.h" |
|
#include "lscpinstrumentloader.h" |
|
43 |
#include "../Sampler.h" |
#include "../Sampler.h" |
44 |
#include "../common/Thread.h" |
#include "../common/Thread.h" |
45 |
#include "../common/Mutex.h" |
#include "../common/Mutex.h" |
46 |
#include "../common/Condition.h" |
#include "../common/Condition.h" |
47 |
|
|
48 |
|
#include "../drivers/midi/MidiInstrumentMapper.h" |
49 |
|
|
50 |
/// TCP Port on which the server should listen for connection requests. |
/// TCP Port on which the server should listen for connection requests. |
51 |
#define LSCP_ADDR INADDR_ANY |
#define LSCP_ADDR INADDR_ANY |
52 |
#define LSCP_PORT 8888 |
#define LSCP_PORT 8888 |
128 |
String SetVolume(double dVolume, uint uiSamplerChannel); |
String SetVolume(double dVolume, uint uiSamplerChannel); |
129 |
String SetChannelMute(bool bMute, uint uiSamplerChannel); |
String SetChannelMute(bool bMute, uint uiSamplerChannel); |
130 |
String SetChannelSolo(bool bSolo, uint uiSamplerChannel); |
String SetChannelSolo(bool bSolo, uint uiSamplerChannel); |
131 |
|
String AddOrReplaceMIDIInstrumentMapping(uint MidiMapID, uint MidiBank, uint MidiProg, String EngineType, String InstrumentFile, uint InstrumentIndex, float Volume, MidiInstrumentMapper::mode_t LoadMode, String Name); |
132 |
|
String RemoveMIDIInstrumentMapping(uint MidiMapID, uint MidiBank, uint MidiProg); |
133 |
|
String GetMidiInstrumentMappings(uint MidiMapID); |
134 |
|
String GetAllMidiInstrumentMappings(); |
135 |
|
String GetMidiInstrumentMapping(uint MidiMapID, uint MidiBank, uint MidiProg); |
136 |
|
String ListMidiInstrumentMappings(uint MidiMapID); |
137 |
|
String ListAllMidiInstrumentMappings(); |
138 |
|
String ClearMidiInstrumentMappings(uint MidiMapID); |
139 |
|
String ClearAllMidiInstrumentMappings(); |
140 |
|
String AddMidiInstrumentMap(String MapName = ""); |
141 |
|
String RemoveMidiInstrumentMap(uint MidiMapID); |
142 |
|
String RemoveAllMidiInstrumentMaps(); |
143 |
|
String GetMidiInstrumentMaps(); |
144 |
|
String ListMidiInstrumentMaps(); |
145 |
|
String GetMidiInstrumentMap(uint MidiMapID); |
146 |
|
String SetMidiInstrumentMapName(uint MidiMapID, String NewName); |
147 |
|
String SetChannelMap(uint uiSamplerChannel, int MidiMapID); |
148 |
String ResetChannel(uint uiSamplerChannel); |
String ResetChannel(uint uiSamplerChannel); |
149 |
String ResetSampler(); |
String ResetSampler(); |
150 |
String GetServerInfo(); |
String GetServerInfo(); |
151 |
|
String GetTotalVoiceCount(); |
152 |
|
String GetTotalVoiceCountMax(); |
153 |
String SubscribeNotification(LSCPEvent::event_t); |
String SubscribeNotification(LSCPEvent::event_t); |
154 |
String UnsubscribeNotification(LSCPEvent::event_t); |
String UnsubscribeNotification(LSCPEvent::event_t); |
155 |
String QueryDatabase(String query); |
String QueryDatabase(String query); |
169 |
sockaddr_in SocketAddress; |
sockaddr_in SocketAddress; |
170 |
Sampler* pSampler; |
Sampler* pSampler; |
171 |
Condition Initialized; |
Condition Initialized; |
|
LSCPInstrumentLoader InstrumentLoader; ///< thread responsible for loading instruments in the background |
|
172 |
|
|
173 |
int Main(); ///< Implementation of virtual method from class Thread |
int Main(); ///< Implementation of virtual method from class Thread |
174 |
|
|