/[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 1130 by iliev, Sun Mar 25 18:59:14 2007 UTC revision 1161 by iliev, Mon Apr 16 15:51:18 2007 UTC
# Line 112  int main(int argc, char **argv) { Line 112  int main(int argc, char **argv) {
112      if (profile)      if (profile)
113      {      {
114          dmsg(1,("Calibrating profiler..."));          dmsg(1,("Calibrating profiler..."));
115          gig::Profiler::Calibrate();          LinuxSampler::gig::Profiler::Calibrate();
116          gig::Profiler::Reset();          LinuxSampler::gig::Profiler::Reset();
117          gig::Profiler::enable();          LinuxSampler::gig::Profiler::enable();
118          dmsg(1,("OK\n"));          dmsg(1,("OK\n"));
119      }      }
120    
# Line 144  int main(int argc, char **argv) { Line 144  int main(int argc, char **argv) {
144        if (profile)        if (profile)
145        {        {
146            unsigned int samplingFreq = 48000; //FIXME: hardcoded for now            unsigned int samplingFreq = 48000; //FIXME: hardcoded for now
147            unsigned int bv = gig::Profiler::GetBogoVoices(samplingFreq);            unsigned int bv = LinuxSampler::gig::Profiler::GetBogoVoices(samplingFreq);
148            if (bv != 0)            if (bv != 0)
149            {            {
150                printf("       BogoVoices: %i         \r", bv);                printf("       BogoVoices: %i         \r", bv);
# Line 185  void signal_handler(int iSignal) { Line 185  void signal_handler(int iSignal) {
185                      delete pLSCPServer;                      delete pLSCPServer;
186                  }                  }
187                  if (pSampler) delete pSampler;                  if (pSampler) delete pSampler;
188    #if HAVE_SQLITE3
189                    InstrumentsDb::Destroy();
190    #endif
191                  printf("LinuxSampler stopped due to SIGINT.\n");                  printf("LinuxSampler stopped due to SIGINT.\n");
192                  exit(EXIT_SUCCESS);                  exit(EXIT_SUCCESS);
193              }              }

Legend:
Removed from v.1130  
changed lines
  Added in v.1161

  ViewVC Help
Powered by ViewVC