/[svn]/linuxsampler/trunk/src/network/lscpserver.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/network/lscpserver.h

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

revision 385 by schoenebeck, Thu Feb 17 02:53:45 2005 UTC revision 667 by senkov, Sun Jun 19 21:22:34 2005 UTC
# Line 47  Line 47 
47  #include "../common/Condition.h"  #include "../common/Condition.h"
48    
49  /// TCP Port on which the server should listen for connection requests.  /// TCP Port on which the server should listen for connection requests.
50    #define LSCP_ADDR INADDR_ANY
51  #define LSCP_PORT 8888  #define LSCP_PORT 8888
52    
53  /// try up to 3 minutes to bind server socket  /// try up to 3 minutes to bind server socket
# Line 63  extern void restart(yyparse_param_t* ppa Line 64  extern void restart(yyparse_param_t* ppa
64   */   */
65  class LSCPServer : public Thread {  class LSCPServer : public Thread {
66      public:      public:
67          LSCPServer(Sampler* pSampler);          LSCPServer(Sampler* pSampler, long int addr, short int port);
68            virtual ~LSCPServer();
69          int WaitUntilInitialized(long TimeoutSeconds = 0L, long TimeoutNanoSeconds = 0L);          int WaitUntilInitialized(long TimeoutSeconds = 0L, long TimeoutNanoSeconds = 0L);
70    
71          // Methods called by the parser          // Methods called by the parser
72          String DestroyAudioOutputDevice(uint DeviceIndex);          String DestroyAudioOutputDevice(uint DeviceIndex);
73          String DestroyMidiInputDevice(uint DeviceIndex);          String DestroyMidiInputDevice(uint DeviceIndex);
74          String LoadInstrument(String Filename, uint uiInstrument, uint uiSamplerChannel, bool bBackground = false);          String LoadInstrument(String Filename, uint uiInstrument, uint uiSamplerChannel, bool bBackground = false);
75          String LoadEngine(String EngineName, uint uiSamplerChannel);          String SetEngineType(String EngineName, uint uiSamplerChannel);
76          String GetChannels();          String GetChannels();
77          String ListChannels();          String ListChannels();
78          String AddChannel();          String AddChannel();
79          String RemoveChannel(uint uiSamplerChannel);          String RemoveChannel(uint uiSamplerChannel);
80          String GetAvailableEngines();          String GetAvailableEngines();
81            String ListAvailableEngines();
82          String GetEngineInfo(String EngineName);          String GetEngineInfo(String EngineName);
83          String GetChannelInfo(uint uiSamplerChannel);          String GetChannelInfo(uint uiSamplerChannel);
84          String GetVoiceCount(uint uiSamplerChannel);          String GetVoiceCount(uint uiSamplerChannel);
85          String GetStreamCount(uint uiSamplerChannel);          String GetStreamCount(uint uiSamplerChannel);
86          String GetBufferFill(fill_response_t ResponseType, uint uiSamplerChannel);          String GetBufferFill(fill_response_t ResponseType, uint uiSamplerChannel);
87          String GetAvailableAudioOutputDrivers();          String GetAvailableAudioOutputDrivers();
88            String ListAvailableAudioOutputDrivers();
89          String GetAvailableMidiInputDrivers();          String GetAvailableMidiInputDrivers();
90            String ListAvailableMidiInputDrivers();
91          String GetAudioOutputDriverInfo(String Driver);          String GetAudioOutputDriverInfo(String Driver);
92          String GetMidiInputDriverInfo(String Driver);          String GetMidiInputDriverInfo(String Driver);
93  #ifdef __GNUC__  #ifdef __GNUC__
# Line 122  class LSCPServer : public Thread { Line 127  class LSCPServer : public Thread {
127          String SetVolume(double dVolume, uint uiSamplerChannel);          String SetVolume(double dVolume, uint uiSamplerChannel);
128          String ResetChannel(uint uiSamplerChannel);          String ResetChannel(uint uiSamplerChannel);
129          String ResetSampler();          String ResetSampler();
130            String GetServerInfo();
131          String SubscribeNotification(LSCPEvent::event_t);          String SubscribeNotification(LSCPEvent::event_t);
132          String UnsubscribeNotification(LSCPEvent::event_t);          String UnsubscribeNotification(LSCPEvent::event_t);
133            String QueryDatabase(String query);
134          String SetEcho(yyparse_param_t* pSession, double boolean_value);          String SetEcho(yyparse_param_t* pSession, double boolean_value);
135          void   AnswerClient(String ReturnMessage);          void   AnswerClient(String ReturnMessage);
136    

Legend:
Removed from v.385  
changed lines
  Added in v.667

  ViewVC Help
Powered by ViewVC