--- linuxsampler/trunk/src/network/lscpserver.cpp 2004/07/15 22:20:28 208 +++ linuxsampler/trunk/src/network/lscpserver.cpp 2004/07/18 00:29:39 209 @@ -454,6 +454,23 @@ } /** + * Will be called by the parser to get the list of sampler channels. + */ +String LSCPServer::ListChannels() { + dmsg(2,("LSCPServer: ListChannels()\n")); + String list; + std::map channels = pSampler->GetSamplerChannels(); + std::map::iterator iter = channels.begin(); + for (; iter != channels.end(); iter++) { + if (list != "") list += ","; + list += ToString(iter->first); + } + LSCPResultSet result; + result.Add(list); + return result.Produce(); +} + +/** * Will be called by the parser to add a sampler channel. */ String LSCPServer::AddChannel() {