/[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 208 by schoenebeck, Tue Jul 13 22:44:13 2004 UTC revision 209 by schoenebeck, Sun Jul 18 00:29:39 2004 UTC
# Line 454  String LSCPServer::GetChannels() { Line 454  String LSCPServer::GetChannels() {
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() {

Legend:
Removed from v.208  
changed lines
  Added in v.209

  ViewVC Help
Powered by ViewVC