/[svn]/linuxsampler/trunk/src/network/lscpserver.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/network/lscpserver.cpp

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

revision 128 by schoenebeck, Mon Jun 14 19:33:16 2004 UTC revision 129 by senkov, Tue Jun 15 03:30:16 2004 UTC
# Line 330  String LSCPServer::GetBufferFill(fill_re Line 330  String LSCPServer::GetBufferFill(fill_re
330          if (!pSamplerChannel) throw LinuxSamplerException("Index out of bounds");          if (!pSamplerChannel) throw LinuxSamplerException("Index out of bounds");
331          Engine* pEngine = pSamplerChannel->GetEngine();          Engine* pEngine = pSamplerChannel->GetEngine();
332          if (!pEngine) throw LinuxSamplerException("No engine loaded on channel");          if (!pEngine) throw LinuxSamplerException("No engine loaded on channel");
333          if (!pEngine->DiskStreamSupported()) return "NA\r\n"; //FIXME: Update resultset class to support "NA"          if (!pEngine->DiskStreamSupported())
334          switch (ResponseType) {              result.Add("NA");
335              case fill_response_bytes:          else {
336                  result.Add(pEngine->DiskStreamBufferFillBytes());              switch (ResponseType) {
337                  break;                  case fill_response_bytes:
338              case fill_response_percentage:                      result.Add(pEngine->DiskStreamBufferFillBytes());
339                  result.Add(pEngine->DiskStreamBufferFillPercentage());                      break;
340                  break;                  case fill_response_percentage:
341              default:                      result.Add(pEngine->DiskStreamBufferFillPercentage());
342                  throw LinuxSamplerException("Unknown fill response type");                      break;
343          }                  default:
344                        throw LinuxSamplerException("Unknown fill response type");
345                }
346            }
347      }      }
348      catch (LinuxSamplerException e) {      catch (LinuxSamplerException e) {
349           result.Error(e);           result.Error(e);

Legend:
Removed from v.128  
changed lines
  Added in v.129

  ViewVC Help
Powered by ViewVC