347 |
int devices = atoi(answer.c_str()); |
int devices = atoi(answer.c_str()); |
348 |
CPPUNIT_ASSERT(devices >= 0); |
CPPUNIT_ASSERT(devices >= 0); |
349 |
if (!devices) { // if there's no audio output device yet, try to create one |
if (!devices) { // if there's no audio output device yet, try to create one |
350 |
sendCommandToLSCPServer("GET AVAILABLE_AUDIO_OUTPUT_DRIVERS"); |
sendCommandToLSCPServer("LIST AVAILABLE_AUDIO_OUTPUT_DRIVERS"); |
351 |
string drivers = receiveSingleLineAnswerFromLSCPServer(); |
string drivers = receiveSingleLineAnswerFromLSCPServer(); |
352 |
CPPUNIT_ASSERT(drivers.size()); |
CPPUNIT_ASSERT(drivers.size()); |
353 |
|
|