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); |