/[svn]/liblscp/trunk/examples/example_server.c
ViewVC logotype

Diff of /liblscp/trunk/examples/example_server.c

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

revision 523 by capela, Mon May 9 10:17:12 2005 UTC revision 735 by capela, Tue Aug 16 09:48:42 2005 UTC
# Line 78  lscp_status_t server_callback ( lscp_con Line 78  lscp_status_t server_callback ( lscp_con
78                              "MIDI_INPUT_DEVICE: 0\r\n"                              "MIDI_INPUT_DEVICE: 0\r\n"
79                              "MIDI_INPUT_PORT: 0\r\n"                              "MIDI_INPUT_PORT: 0\r\n"
80                              "MIDI_INPUT_CHANNEL: ALL\r\n"                              "MIDI_INPUT_CHANNEL: ALL\r\n"
81                              "VOLUME: 0.5\r\n";                              "VOLUME: 0.5\r\n"
82                                "MUTE: FALSE\r\n"
83                                "SOLO: TRUE\r\n";
84              }              }
85              else if (lscp_parser_test(&tok, "VOICE_COUNT")) {              else if (lscp_parser_test(&tok, "VOICE_COUNT")) {
86                  // Current number of active voices:                  // Current number of active voices:
# Line 348  lscp_status_t server_callback ( lscp_con Line 350  lscp_status_t server_callback ( lscp_con
350              // GET AVAILABLE_ENGINES              // GET AVAILABLE_ENGINES
351              pszResult = "3\r\n";              pszResult = "3\r\n";
352          }          }
353            else if (lscp_parser_test2(&tok, "SERVER", "INFO")) {
354                // Getting information about the server.
355                // GET SERVER INFO
356                sprintf(szTemp, "DESCRIPTION: example_server (%s) %s\r\n"
357                    "VERSION: %s\r\n", lscp_server_package(),
358                    lscp_server_build(), lscp_server_version());
359                pszResult = szTemp;
360            }
361          else if (lscp_parser_test2(&tok, "ENGINE", "INFO")) {          else if (lscp_parser_test2(&tok, "ENGINE", "INFO")) {
362              // Getting information about an engine.              // Getting information about an engine.
363              // GET ENGINE INFO <engine-name>              // GET ENGINE INFO <engine-name>
# Line 427  lscp_status_t server_callback ( lscp_con Line 437  lscp_status_t server_callback ( lscp_con
437                  // Setting channel volume:                  // Setting channel volume:
438                  // SET CHANNEL VOLUME <sampler-channel> <volume>                  // SET CHANNEL VOLUME <sampler-channel> <volume>
439              }              }
440                else if (lscp_parser_test(&tok, "MUTE")) {
441                    // Muting a sampler channel:
442                    // SET CHANNEL MUTE <sampler-channel> <mute>
443                }
444                else if (lscp_parser_test(&tok, "SOLO")) {
445                    // Soloing a sampler channel:
446                    // SET CHANNEL SOLO <sampler-channel> <solo>
447                }
448              else if (lscp_parser_test(&tok, "AUDIO_OUTPUT_TYPE")) {              else if (lscp_parser_test(&tok, "AUDIO_OUTPUT_TYPE")) {
449                  // Setting audio output type:                  // Setting audio output type:
450                  // SET CHANNEL AUDIO_OUTPUT_TYPE <sampler-channel> <audio-output-type>                  // SET CHANNEL AUDIO_OUTPUT_TYPE <sampler-channel> <audio-output-type>

Legend:
Removed from v.523  
changed lines
  Added in v.735

  ViewVC Help
Powered by ViewVC