57 |
LSCPServer(Sampler* pSampler); |
LSCPServer(Sampler* pSampler); |
58 |
|
|
59 |
// Methods called by the parser |
// Methods called by the parser |
60 |
String CreateAudioOutputDevice(String Driver, std::map<String,String> Parameters); |
String CreateAudioOutputDevice(String Driver, std::map<String,String> Parameters = StringMap()); |
61 |
String DestroyAudioOutputDevice(uint DeviceIndex); |
String DestroyAudioOutputDevice(uint DeviceIndex); |
62 |
String LoadInstrument(String Filename, uint uiInstrument, uint uiSamplerChannel); |
String LoadInstrument(String Filename, uint uiInstrument, uint uiSamplerChannel, bool bBackground = false); |
63 |
String LoadEngine(String EngineName, uint uiSamplerChannel); |
String LoadEngine(String EngineName, uint uiSamplerChannel); |
64 |
String GetChannels(); |
String GetChannels(); |
65 |
String AddChannel(); |
String AddChannel(); |
92 |
String SetAudioOutputDevice(uint AudioDeviceId, uint SamplerChannel); |
String SetAudioOutputDevice(uint AudioDeviceId, uint SamplerChannel); |
93 |
String SetVolume(double Volume, uint uiSamplerChannel); |
String SetVolume(double Volume, uint uiSamplerChannel); |
94 |
String ResetChannel(uint uiSamplerChannel); |
String ResetChannel(uint uiSamplerChannel); |
95 |
String SubscribeNotification(uint UDPPort); |
String SubscribeNotification(event_t Event); |
96 |
String UnsubscribeNotification(String SessionID); |
String UnsubscribeNotification(event_t Event); |
97 |
void AnswerClient(String ReturnMessage); |
void AnswerClient(String ReturnMessage); |
98 |
protected: |
protected: |
99 |
int hSocket; |
int hSocket; |
130 |
} |
} |
131 |
}; |
}; |
132 |
|
|
133 |
|
|
134 |
|
/** |
135 |
|
* Instrument loader thread for the LinuxSampler Control Protocol (LSCP). |
136 |
|
*/ |
137 |
|
class LSCPLoadInstrument : public Thread { |
138 |
|
|
139 |
|
public: |
140 |
|
LSCPLoadInstrument(Engine* pEngine, String Filename, uint uiInstrument); |
141 |
|
|
142 |
|
protected: |
143 |
|
// Instance variables. |
144 |
|
Engine* pEngine; |
145 |
|
String Filename; |
146 |
|
uint uiInstrument; |
147 |
|
|
148 |
|
// Implementation of virtual method from class Thread. |
149 |
|
int Main(); |
150 |
|
}; |
151 |
|
|
152 |
#endif // __LSCPSERVER_H_ |
#endif // __LSCPSERVER_H_ |