/[svn]/linuxsampler/trunk/src/linuxsampler.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/linuxsampler.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 360 by senkov, Mon Feb 7 00:19:30 2005 UTC revision 411 by schoenebeck, Sat Feb 26 02:01:14 2005 UTC
# Line 3  Line 3 
3   *   LinuxSampler - modular, streaming capable sampler                     *   *   LinuxSampler - modular, streaming capable sampler                     *
4   *                                                                         *   *                                                                         *
5   *   Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck   *   *   Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck   *
6     *   Copyright (C) 2005 Christian Schoenebeck                              *
7   *                                                                         *   *                                                                         *
8   *   This program is free software; you can redistribute it and/or modify  *   *   This program is free software; you can redistribute it and/or modify  *
9   *   it under the terms of the GNU General Public License as published by  *   *   it under the terms of the GNU General Public License as published by  *
# Line 71  int main(int argc, char **argv) { Line 72  int main(int argc, char **argv) {
72    
73      dmsg(1,("LinuxSampler %s\n", VERSION));      dmsg(1,("LinuxSampler %s\n", VERSION));
74      dmsg(1,("Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck\n"));      dmsg(1,("Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck\n"));
75        dmsg(1,("Copyright (C) 2005 Christian Schoenebeck\n"));
76    
77      if (tune)      if (tune)
78      {      {
# Line 140  int main(int argc, char **argv) { Line 142  int main(int argc, char **argv) {
142                std::map<uint,SamplerChannel*>::iterator iter = channels.begin();                std::map<uint,SamplerChannel*>::iterator iter = channels.begin();
143                for (; iter != channels.end(); iter++) {                for (; iter != channels.end(); iter++) {
144                        SamplerChannel* pSamplerChannel = iter->second;                        SamplerChannel* pSamplerChannel = iter->second;
145                        Engine* pEngine = pSamplerChannel->GetEngine();                        EngineChannel* pEngineChannel = pSamplerChannel->GetEngineChannel();
146                          if (!pEngineChannel) continue;
147                          Engine* pEngine = pEngineChannel->GetEngine();
148                        if (!pEngine) continue;                        if (!pEngine) continue;
149                        LSCPServer::SendLSCPNotify(LSCPEvent(LSCPEvent::event_voice_count, iter->first, pEngine->VoiceCount()));                        LSCPServer::SendLSCPNotify(LSCPEvent(LSCPEvent::event_voice_count, iter->first, pEngine->VoiceCount()));
150                        LSCPServer::SendLSCPNotify(LSCPEvent(LSCPEvent::event_stream_count, iter->first, pEngine->DiskStreamCount()));                        LSCPServer::SendLSCPNotify(LSCPEvent(LSCPEvent::event_stream_count, iter->first, pEngine->DiskStreamCount()));
# Line 216  void parse_options(int argc, char **argv Line 220  void parse_options(int argc, char **argv
220          };          };
221    
222      while (true) {      while (true) {
223          res = getopt_long_only(argc, argv, "", long_options, &option_index);          /*
224              Stephane Letz : letz@grame.fr
225              getopt_long_only does not exist on OSX : replaced by getopt_long for now.
226            */
227            res = getopt_long(argc, argv, "", long_options, &option_index);
228          if(res == -1) break;          if(res == -1) break;
229          if (res == 0) {          if (res == 0) {
230              switch(option_index) {              switch(option_index) {

Legend:
Removed from v.360  
changed lines
  Added in v.411

  ViewVC Help
Powered by ViewVC