/[svn]/linuxsampler/trunk/src/testcases/LSCPTest.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/testcases/LSCPTest.cpp

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

revision 224 by schoenebeck, Sat Aug 21 15:31:36 2004 UTC revision 676 by schoenebeck, Wed Jun 22 22:13:08 2005 UTC
# Line 77  bool LSCPTest::launchLSCPServer() { Line 77  bool LSCPTest::launchLSCPServer() {
77      const long timeout_seconds = 10; // we give the server max. 10 seconds to startup, otherwise we declare the startup as failed      const long timeout_seconds = 10; // we give the server max. 10 seconds to startup, otherwise we declare the startup as failed
78      try {      try {
79          pSampler    = new Sampler;          pSampler    = new Sampler;
80          pLSCPServer = new LSCPServer(pSampler);          pLSCPServer = new LSCPServer(pSampler, htonl(LSCP_ADDR), htons(LSCP_PORT));
81          pLSCPServer->StartThread();          pLSCPServer->StartThread();
82          int res = pLSCPServer->WaitUntilInitialized(timeout_seconds);          int res = pLSCPServer->WaitUntilInitialized(timeout_seconds);
83          if (res < 0) throw;          if (res < 0) throw;
# Line 347  void LSCPTest::test_GET_AUDIO_OUTPUT_CHA Line 347  void LSCPTest::test_GET_AUDIO_OUTPUT_CHA
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    

Legend:
Removed from v.224  
changed lines
  Added in v.676

  ViewVC Help
Powered by ViewVC