1391 |
if (!pSamplerChannel) throw LinuxSamplerException("Invalid sampler channel number " + ToString(uiSamplerChannel)); |
if (!pSamplerChannel) throw LinuxSamplerException("Invalid sampler channel number " + ToString(uiSamplerChannel)); |
1392 |
EngineChannel* pEngineChannel = pSamplerChannel->GetEngineChannel(); |
EngineChannel* pEngineChannel = pSamplerChannel->GetEngineChannel(); |
1393 |
if (!pEngineChannel) throw LinuxSamplerException("No engine type assigned to sampler channel"); |
if (!pEngineChannel) throw LinuxSamplerException("No engine type assigned to sampler channel"); |
1394 |
|
if (!pEngineChannel->GetEngine()) throw LinuxSamplerException("No audio output device connected to sampler channel"); |
1395 |
pEngineChannel->GetEngine()->Reset(); |
pEngineChannel->GetEngine()->Reset(); |
1396 |
} |
} |
1397 |
catch (LinuxSamplerException e) { |
catch (LinuxSamplerException e) { |
1418 |
dmsg(2,("LSCPServer: GetServerInfo()\n")); |
dmsg(2,("LSCPServer: GetServerInfo()\n")); |
1419 |
LSCPResultSet result; |
LSCPResultSet result; |
1420 |
result.Add("DESCRIPTION", "LinuxSampler - modular, streaming capable sampler"); |
result.Add("DESCRIPTION", "LinuxSampler - modular, streaming capable sampler"); |
1421 |
result.Add("VERSION", VERSION); |
result.Add("VERSION", VERSION); |
1422 |
|
result.Add("PROTOCOL_VERSION", "1.0"); |
1423 |
return result.Produce(); |
return result.Produce(); |
1424 |
} |
} |
1425 |
|
|