415 |
} |
} |
416 |
|
|
417 |
|
|
418 |
void client_test_all ( lscp_client_t *pClient ) |
void client_test_all ( lscp_client_t *pClient, int step ) |
419 |
{ |
{ |
420 |
const char **ppszAudioDrivers, **ppszMidiDrivers, **ppszEngines; |
const char **ppszAudioDrivers, **ppszMidiDrivers, **ppszEngines; |
421 |
const char *pszAudioDriver, *pszMidiDriver, *pszEngine; |
const char *pszAudioDriver, *pszMidiDriver, *pszEngine; |
424 |
int iNewAudioDevice, iNewMidiDevice; |
int iNewAudioDevice, iNewMidiDevice; |
425 |
int *piAudioDevices, *piMidiDevices; |
int *piAudioDevices, *piMidiDevices; |
426 |
|
|
427 |
|
g_test_step = step; |
428 |
g_test_count = 0; |
g_test_count = 0; |
429 |
g_test_fails = 0; |
g_test_fails = 0; |
430 |
|
|
474 |
} |
} |
475 |
CLIENT_TEST(pClient, status, lscp_destroy_audio_device(pClient, iNewAudioDevice)); |
CLIENT_TEST(pClient, status, lscp_destroy_audio_device(pClient, iNewAudioDevice)); |
476 |
} |
} |
477 |
|
|
478 |
|
CLIENT_TEST(pClient, status, lscp_reset_sampler(pClient)); |
479 |
|
|
480 |
printf("\n\n"); |
printf("\n\n"); |
481 |
printf(" Total: %d tests, %d failed.\n\n", g_test_count, g_test_fails); |
printf(" Total: %d tests, %d failed.\n\n", g_test_count, g_test_fails); |
482 |
} |
} |
540 |
lscp_client_unsubscribe(pClient, LSCP_EVENT_MISCELLANEOUS); |
lscp_client_unsubscribe(pClient, LSCP_EVENT_MISCELLANEOUS); |
541 |
else |
else |
542 |
if (strcmp(szLine, "test") == 0) |
if (strcmp(szLine, "test") == 0) |
543 |
client_test_all(pClient); |
client_test_all(pClient, 0); |
544 |
else |
else |
545 |
if (strcmp(szLine, "teststep") == 0 || strcmp(szLine, "test step") == 0) { |
if (strcmp(szLine, "teststep") == 0 || strcmp(szLine, "test step") == 0) |
546 |
g_test_step = 1; |
client_test_all(pClient, 1); |
|
client_test_all(pClient); |
|
|
g_test_step = 0; |
|
|
} |
|
547 |
else |
else |
548 |
if (cchLine > 0 && strcmp(szLine, "help") != 0) { |
if (cchLine > 0 && strcmp(szLine, "help") != 0) { |
549 |
szLine[cchLine++] = '\r'; |
szLine[cchLine++] = '\r'; |