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: |
117 |
pszResult = szTemp; |
pszResult = szTemp; |
118 |
} |
} |
119 |
else if (lscp_parser_test(&tok, "AVAILABLE_AUDIO_OUTPUT_DRIVERS")) { |
else if (lscp_parser_test(&tok, "AVAILABLE_AUDIO_OUTPUT_DRIVERS")) { |
120 |
// Getting all available audio output drivers. |
// Getting all available audio output driver count. |
121 |
// GET AVAILABLE_AUDIO_OUTPUT_DRIVERS |
// GET AVAILABLE_AUDIO_OUTPUT_DRIVERS |
122 |
pszResult = "Alsa,Jack\r\n"; |
pszResult = "2\r\n"; |
123 |
} |
} |
124 |
else if (lscp_parser_test(&tok, "AVAILABLE_MIDI_INPUT_DRIVERS")) { |
else if (lscp_parser_test(&tok, "AVAILABLE_MIDI_INPUT_DRIVERS")) { |
125 |
// Getting all available MIDI input drivers. |
// Getting all available MIDI input driver count. |
126 |
// GET AVAILABLE_MIDI_INPUT_DRIVERS |
// GET AVAILABLE_MIDI_INPUT_DRIVERS |
127 |
pszResult = "Alsa\r\n"; |
pszResult = "1\r\n"; |
128 |
} |
} |
129 |
else if (lscp_parser_test2(&tok, "AUDIO_OUTPUT_DRIVER", "INFO")) { |
else if (lscp_parser_test2(&tok, "AUDIO_OUTPUT_DRIVER", "INFO")) { |
130 |
// Getting informations about a specific audio output driver. |
// Getting informations about a specific audio output driver. |
346 |
pszResult = szTemp; |
pszResult = szTemp; |
347 |
} |
} |
348 |
else if (lscp_parser_test(&tok, "AVAILABLE_ENGINES")) { |
else if (lscp_parser_test(&tok, "AVAILABLE_ENGINES")) { |
349 |
// Getting all available engines: |
// Getting all available engine count: |
350 |
// GET AVAILABLE_ENGINES |
// GET AVAILABLE_ENGINES |
351 |
pszResult = "GigEngine,DLSEngine,AkaiEngine\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. |
390 |
} |
} |
391 |
else ret = LSCP_FAILED; |
else ret = LSCP_FAILED; |
392 |
} |
} |
393 |
|
else if (lscp_parser_test(&tok, "AVAILABLE_ENGINES")) { |
394 |
|
// Getting all available engines: |
395 |
|
// LIST AVAILABLE_ENGINES |
396 |
|
pszResult = "GigEngine,DLSEngine,AkaiEngine\r\n"; |
397 |
|
} |
398 |
|
else if (lscp_parser_test(&tok, "AVAILABLE_AUDIO_OUTPUT_DRIVERS")) { |
399 |
|
// Getting all available audio output drivers. |
400 |
|
// LIST AVAILABLE_AUDIO_OUTPUT_DRIVERS |
401 |
|
pszResult = "ALSA,JACK\r\n"; |
402 |
|
} |
403 |
|
else if (lscp_parser_test(&tok, "AVAILABLE_MIDI_INPUT_DRIVERS")) { |
404 |
|
// Getting all available MIDI input drivers. |
405 |
|
// LIST AVAILABLE_MIDI_INPUT_DRIVERS |
406 |
|
pszResult = "ALSA\r\n"; |
407 |
|
} |
408 |
else if (lscp_parser_test(&tok, "AUDIO_OUTPUT_DEVICES")) { |
else if (lscp_parser_test(&tok, "AUDIO_OUTPUT_DEVICES")) { |
409 |
// Getting all created audio output device list. |
// Getting all created audio output device list. |
410 |
// LIST AUDIO_OUTPUT_DEVICES |
// LIST AUDIO_OUTPUT_DEVICES |
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> |