/[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 170 by senkov, Sat Jul 3 20:08:07 2004 UTC revision 210 by schoenebeck, Sat Jul 24 12:33:49 2004 UTC
# Line 66  class LSCPServer : public Thread { Line 66  class LSCPServer : public Thread {
66          String LoadInstrument(String Filename, uint uiInstrument, uint uiSamplerChannel, bool bBackground = false);          String LoadInstrument(String Filename, uint uiInstrument, uint uiSamplerChannel, bool bBackground = false);
67          String LoadEngine(String EngineName, uint uiSamplerChannel);          String LoadEngine(String EngineName, uint uiSamplerChannel);
68          String GetChannels();          String GetChannels();
69            String ListChannels();
70          String AddChannel();          String AddChannel();
71          String RemoveChannel(uint uiSamplerChannel);          String RemoveChannel(uint uiSamplerChannel);
72          String GetAvailableEngines();          String GetAvailableEngines();
# Line 97  class LSCPServer : public Thread { Line 98  class LSCPServer : public Thread {
98          String GetAudioOutputDeviceInfo(uint DeviceIndex);          String GetAudioOutputDeviceInfo(uint DeviceIndex);
99          String GetMidiInputDeviceInfo(uint DeviceIndex);          String GetMidiInputDeviceInfo(uint DeviceIndex);
100          String GetMidiInputPortInfo(uint DeviceIndex, uint PortIndex);          String GetMidiInputPortInfo(uint DeviceIndex, uint PortIndex);
101            String GetMidiInputPortParameterInfo(uint DeviceId, uint PortId, String ParameterName);
102          String GetAudioOutputChannelInfo(uint DeviceId, uint ChannelId);          String GetAudioOutputChannelInfo(uint DeviceId, uint ChannelId);
103          String GetAudioOutputChannelParameterInfo(uint DeviceId, uint ChannelId, String ParameterName);          String GetAudioOutputChannelParameterInfo(uint DeviceId, uint ChannelId, String ParameterName);
104          String SetAudioOutputChannelParameter(uint DeviceId, uint ChannelId, String ParamKey, String ParamVal);          String SetAudioOutputChannelParameter(uint DeviceId, uint ChannelId, String ParamKey, String ParamVal);
# Line 115  class LSCPServer : public Thread { Line 117  class LSCPServer : public Thread {
117          String ResetChannel(uint uiSamplerChannel);          String ResetChannel(uint uiSamplerChannel);
118          String SubscribeNotification(LSCPEvent::event_t);          String SubscribeNotification(LSCPEvent::event_t);
119          String UnsubscribeNotification(LSCPEvent::event_t);          String UnsubscribeNotification(LSCPEvent::event_t);
120            String SetEcho(yyparse_param_t* pSession, double boolean_value);
121          void   AnswerClient(String ReturnMessage);          void   AnswerClient(String ReturnMessage);
122    
123          static int currentSocket;          static int currentSocket;
124          static std::map<int,String> bufferedCommands;          static std::map<int,String> bufferedCommands;
125    
126            static void SendLSCPNotify( LSCPEvent Event );
127    
128      protected:      protected:
129          int            hSocket;          int            hSocket;
130          sockaddr_in    SocketAddress;          sockaddr_in    SocketAddress;
# Line 126  class LSCPServer : public Thread { Line 132  class LSCPServer : public Thread {
132    
133          int Main(); ///< Implementation of virtual method from class Thread          int Main(); ///< Implementation of virtual method from class Thread
134    
         static void SendLSCPNotify( LSCPEvent Event );  
   
135      private:      private:
136            
137          /**          /**
138           * Find a created audio output device index.           * Find a created audio output device index.
139           */           */
140          int GetAudioOutputDeviceIndex (AudioOutputDevice *pDevice);          int GetAudioOutputDeviceIndex (AudioOutputDevice *pDevice);
141            
142          /**          /**
143           * Find a created midi input device index.           * Find a created midi input device index.
144           */           */
# Line 143  class LSCPServer : public Thread { Line 147  class LSCPServer : public Thread {
147          static std::map<int,String> bufferedNotifies;          static std::map<int,String> bufferedNotifies;
148          static Mutex NotifyMutex;          static Mutex NotifyMutex;
149          static Mutex NotifyBufferMutex;          static Mutex NotifyBufferMutex;
150          static bool GetLSCPCommand( std::vector<int>::iterator iter );          static bool GetLSCPCommand( std::vector<yyparse_param_t>::iterator iter );
151          static void CloseConnection( std::vector<int>::iterator iter );          static void CloseConnection( std::vector<yyparse_param_t>::iterator iter );
152          static std::vector<int> hSessions;          static std::vector<yyparse_param_t> Sessions;
153          static Mutex SubscriptionMutex;          static Mutex SubscriptionMutex;
154          static std::map< LSCPEvent::event_t, std::list<int> > eventSubscriptions;          static std::map< LSCPEvent::event_t, std::list<int> > eventSubscriptions;
155          static fd_set fdSet;          static fd_set fdSet;

Legend:
Removed from v.170  
changed lines
  Added in v.210

  ViewVC Help
Powered by ViewVC