48 |
lscp_mutex_lock(pClient->mutex); |
lscp_mutex_lock(pClient->mutex); |
49 |
|
|
50 |
lscp_driver_info_reset(pDriverInfo); |
lscp_driver_info_reset(pDriverInfo); |
51 |
if (lscp_client_call(pClient, pszQuery) == LSCP_OK) { |
if (lscp_client_call(pClient, pszQuery, 1) == LSCP_OK) { |
52 |
pszResult = lscp_client_get_result(pClient); |
pszResult = lscp_client_get_result(pClient); |
53 |
pszToken = lscp_strtok((char *) pszResult, pszSeps, &(pch)); |
pszToken = lscp_strtok((char *) pszResult, pszSeps, &(pch)); |
54 |
while (pszToken) { |
while (pszToken) { |
96 |
lscp_mutex_lock(pClient->mutex); |
lscp_mutex_lock(pClient->mutex); |
97 |
|
|
98 |
lscp_device_info_reset(pDeviceInfo); |
lscp_device_info_reset(pDeviceInfo); |
99 |
if (lscp_client_call(pClient, pszQuery) == LSCP_OK) { |
if (lscp_client_call(pClient, pszQuery, 1) == LSCP_OK) { |
100 |
pszResult = lscp_client_get_result(pClient); |
pszResult = lscp_client_get_result(pClient); |
101 |
pszToken = lscp_strtok((char *) pszResult, pszSeps, &(pch)); |
pszToken = lscp_strtok((char *) pszResult, pszSeps, &(pch)); |
102 |
while (pszToken) { |
while (pszToken) { |
137 |
lscp_mutex_lock(pClient->mutex); |
lscp_mutex_lock(pClient->mutex); |
138 |
|
|
139 |
lscp_device_port_info_reset(pDevicePortInfo); |
lscp_device_port_info_reset(pDevicePortInfo); |
140 |
if (lscp_client_call(pClient, pszQuery) == LSCP_OK) { |
if (lscp_client_call(pClient, pszQuery, 1) == LSCP_OK) { |
141 |
pszResult = lscp_client_get_result(pClient); |
pszResult = lscp_client_get_result(pClient); |
142 |
pszToken = lscp_strtok((char *) pszResult, pszSeps, &(pch)); |
pszToken = lscp_strtok((char *) pszResult, pszSeps, &(pch)); |
143 |
while (pszToken) { |
while (pszToken) { |
178 |
|
|
179 |
lscp_param_info_reset(pParamInfo); |
lscp_param_info_reset(pParamInfo); |
180 |
lscp_param_concat(pszQuery, cchMaxQuery, pDepList); |
lscp_param_concat(pszQuery, cchMaxQuery, pDepList); |
181 |
if (lscp_client_call(pClient, pszQuery) == LSCP_OK) { |
if (lscp_client_call(pClient, pszQuery, 1) == LSCP_OK) { |
182 |
pszResult = lscp_client_get_result(pClient); |
pszResult = lscp_client_get_result(pClient); |
183 |
pszToken = lscp_strtok((char *) pszResult, pszSeps, &(pch)); |
pszToken = lscp_strtok((char *) pszResult, pszSeps, &(pch)); |
184 |
while (pszToken) { |
while (pszToken) { |
278 |
// Lock this section up. |
// Lock this section up. |
279 |
lscp_mutex_lock(pClient->mutex); |
lscp_mutex_lock(pClient->mutex); |
280 |
|
|
281 |
if (lscp_client_call(pClient, "GET AVAILABLE_AUDIO_OUTPUT_DRIVERS\r\n") == LSCP_OK) |
if (lscp_client_call(pClient, "GET AVAILABLE_AUDIO_OUTPUT_DRIVERS\r\n", 0) == LSCP_OK) |
282 |
iAudioDrivers = atoi(lscp_client_get_result(pClient)); |
iAudioDrivers = atoi(lscp_client_get_result(pClient)); |
283 |
|
|
284 |
// Unlock this section down. |
// Unlock this section down. |
309 |
pClient->audio_drivers = NULL; |
pClient->audio_drivers = NULL; |
310 |
} |
} |
311 |
|
|
312 |
if (lscp_client_call(pClient, "LIST AVAILABLE_AUDIO_OUTPUT_DRIVERS\r\n") == LSCP_OK) |
if (lscp_client_call(pClient, "LIST AVAILABLE_AUDIO_OUTPUT_DRIVERS\r\n", 0) == LSCP_OK) |
313 |
pClient->audio_drivers = lscp_szsplit_create(lscp_client_get_result(pClient), pszSeps); |
pClient->audio_drivers = lscp_szsplit_create(lscp_client_get_result(pClient), pszSeps); |
314 |
|
|
315 |
// Unlock this section down. |
// Unlock this section down. |
398 |
|
|
399 |
sprintf(szQuery, "CREATE AUDIO_OUTPUT_DEVICE %s", pszAudioDriver); |
sprintf(szQuery, "CREATE AUDIO_OUTPUT_DEVICE %s", pszAudioDriver); |
400 |
lscp_param_concat(szQuery, sizeof(szQuery), pParams); |
lscp_param_concat(szQuery, sizeof(szQuery), pParams); |
401 |
if (lscp_client_call(pClient, szQuery) == LSCP_OK) |
if (lscp_client_call(pClient, szQuery, 0) == LSCP_OK) |
402 |
iAudioDevice = atoi(lscp_client_get_result(pClient)); |
iAudioDevice = atoi(lscp_client_get_result(pClient)); |
403 |
|
|
404 |
// Unlock this section down. |
// Unlock this section down. |
448 |
// Lock this section up. |
// Lock this section up. |
449 |
lscp_mutex_lock(pClient->mutex); |
lscp_mutex_lock(pClient->mutex); |
450 |
|
|
451 |
if (lscp_client_call(pClient, "GET AUDIO_OUTPUT_DEVICES\r\n") == LSCP_OK) |
if (lscp_client_call(pClient, "GET AUDIO_OUTPUT_DEVICES\r\n", 0) == LSCP_OK) |
452 |
iAudioDevices = atoi(lscp_client_get_result(pClient)); |
iAudioDevices = atoi(lscp_client_get_result(pClient)); |
453 |
|
|
454 |
// Unlock this section down. |
// Unlock this section down. |
482 |
pClient->audio_devices = NULL; |
pClient->audio_devices = NULL; |
483 |
} |
} |
484 |
|
|
485 |
if (lscp_client_call(pClient, "LIST AUDIO_OUTPUT_DEVICES\r\n") == LSCP_OK) |
if (lscp_client_call(pClient, "LIST AUDIO_OUTPUT_DEVICES\r\n", 0) == LSCP_OK) |
486 |
pClient->audio_devices = lscp_isplit_create(lscp_client_get_result(pClient), pszSeps); |
pClient->audio_devices = lscp_isplit_create(lscp_client_get_result(pClient), pszSeps); |
487 |
|
|
488 |
// Unlock this section down. |
// Unlock this section down. |
647 |
// Lock this section up. |
// Lock this section up. |
648 |
lscp_mutex_lock(pClient->mutex); |
lscp_mutex_lock(pClient->mutex); |
649 |
|
|
650 |
if (lscp_client_call(pClient, "GET AVAILABLE_MIDI_INPUT_DRIVERS\r\n") == LSCP_OK) |
if (lscp_client_call(pClient, "GET AVAILABLE_MIDI_INPUT_DRIVERS\r\n", 0) == LSCP_OK) |
651 |
iMidiDrivers = atoi(lscp_client_get_result(pClient)); |
iMidiDrivers = atoi(lscp_client_get_result(pClient)); |
652 |
|
|
653 |
// Unlock this section up. |
// Unlock this section up. |
678 |
pClient->midi_drivers = NULL; |
pClient->midi_drivers = NULL; |
679 |
} |
} |
680 |
|
|
681 |
if (lscp_client_call(pClient, "LIST AVAILABLE_MIDI_INPUT_DRIVERS\r\n") == LSCP_OK) |
if (lscp_client_call(pClient, "LIST AVAILABLE_MIDI_INPUT_DRIVERS\r\n", 0) == LSCP_OK) |
682 |
pClient->midi_drivers = lscp_szsplit_create(lscp_client_get_result(pClient), pszSeps); |
pClient->midi_drivers = lscp_szsplit_create(lscp_client_get_result(pClient), pszSeps); |
683 |
|
|
684 |
// Unlock this section up. |
// Unlock this section up. |
769 |
|
|
770 |
sprintf(szQuery, "CREATE MIDI_INPUT_DEVICE %s", pszMidiDriver); |
sprintf(szQuery, "CREATE MIDI_INPUT_DEVICE %s", pszMidiDriver); |
771 |
lscp_param_concat(szQuery, sizeof(szQuery), pParams); |
lscp_param_concat(szQuery, sizeof(szQuery), pParams); |
772 |
if (lscp_client_call(pClient, szQuery) == LSCP_OK) |
if (lscp_client_call(pClient, szQuery, 0) == LSCP_OK) |
773 |
iMidiDevice = atoi(lscp_client_get_result(pClient)); |
iMidiDevice = atoi(lscp_client_get_result(pClient)); |
774 |
|
|
775 |
// Unlock this section down. |
// Unlock this section down. |
819 |
// Lock this section up. |
// Lock this section up. |
820 |
lscp_mutex_lock(pClient->mutex); |
lscp_mutex_lock(pClient->mutex); |
821 |
|
|
822 |
if (lscp_client_call(pClient, "GET MIDI_INPUT_DEVICES\r\n") == LSCP_OK) |
if (lscp_client_call(pClient, "GET MIDI_INPUT_DEVICES\r\n", 0) == LSCP_OK) |
823 |
iMidiDevices = atoi(lscp_client_get_result(pClient)); |
iMidiDevices = atoi(lscp_client_get_result(pClient)); |
824 |
|
|
825 |
// Unlock this section down. |
// Unlock this section down. |
853 |
pClient->midi_devices = NULL; |
pClient->midi_devices = NULL; |
854 |
} |
} |
855 |
|
|
856 |
if (lscp_client_call(pClient, "LIST MIDI_INPUT_DEVICES\r\n") == LSCP_OK) |
if (lscp_client_call(pClient, "LIST MIDI_INPUT_DEVICES\r\n", 0) == LSCP_OK) |
857 |
pClient->midi_devices = lscp_isplit_create(lscp_client_get_result(pClient), pszSeps); |
pClient->midi_devices = lscp_isplit_create(lscp_client_get_result(pClient), pszSeps); |
858 |
|
|
859 |
// Unlock this section down. |
// Unlock this section down. |