454 |
} |
} |
455 |
|
|
456 |
/** |
/** |
457 |
|
* Will be called by the parser to get the list of sampler channels. |
458 |
|
*/ |
459 |
|
String LSCPServer::ListChannels() { |
460 |
|
dmsg(2,("LSCPServer: ListChannels()\n")); |
461 |
|
String list; |
462 |
|
std::map<uint,SamplerChannel*> channels = pSampler->GetSamplerChannels(); |
463 |
|
std::map<uint,SamplerChannel*>::iterator iter = channels.begin(); |
464 |
|
for (; iter != channels.end(); iter++) { |
465 |
|
if (list != "") list += ","; |
466 |
|
list += ToString(iter->first); |
467 |
|
} |
468 |
|
LSCPResultSet result; |
469 |
|
result.Add(list); |
470 |
|
return result.Produce(); |
471 |
|
} |
472 |
|
|
473 |
|
/** |
474 |
* Will be called by the parser to add a sampler channel. |
* Will be called by the parser to add a sampler channel. |
475 |
*/ |
*/ |
476 |
String LSCPServer::AddChannel() { |
String LSCPServer::AddChannel() { |