/[svn]/linuxsampler/trunk/src/engines/gig/Engine.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/engines/gig/Engine.cpp

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

revision 80 by schoenebeck, Sun May 23 19:16:33 2004 UTC revision 112 by senkov, Sun Jun 6 20:57:28 2004 UTC
# Line 61  namespace LinuxSampler { namespace gig { Line 61  namespace LinuxSampler { namespace gig {
61          pSynthesisParameters[0] = NULL; // we allocate when an audio device is connected          pSynthesisParameters[0] = NULL; // we allocate when an audio device is connected
62          pBasicFilterParameters  = NULL;          pBasicFilterParameters  = NULL;
63          pMainFilterParameters   = NULL;          pMainFilterParameters   = NULL;
64    
65            InstrumentIdx = -1;
66    
67          ResetInternal();          ResetInternal();
68      }      }
# Line 195  namespace LinuxSampler { namespace gig { Line 197  namespace LinuxSampler { namespace gig {
197              Instruments.HandBack(pInstrument, this);              Instruments.HandBack(pInstrument, this);
198          }          }
199    
200            InstrumentIdx = -1;
201    
202          // request gig instrument from instrument manager          // request gig instrument from instrument manager
203          try {          try {
204              instrument_id_t instrid;              instrument_id_t instrid;
# Line 218  namespace LinuxSampler { namespace gig { Line 222  namespace LinuxSampler { namespace gig {
222              throw LinuxSamplerException("gig::Engine error: Failed to load instrument, cause: Unknown exception while trying to parse gig file.");              throw LinuxSamplerException("gig::Engine error: Failed to load instrument, cause: Unknown exception while trying to parse gig file.");
223          }          }
224    
225            InstrumentFile = FileName;
226            InstrumentIdx = Instrument;
227    
228          // inform audio driver for the need of two channels          // inform audio driver for the need of two channels
229          try {          try {
230              if (pAudioOutputDevice) pAudioOutputDevice->AcquireChannels(2); // gig Engine only stereo              if (pAudioOutputDevice) pAudioOutputDevice->AcquireChannels(2); // gig Engine only stereo
# Line 690  namespace LinuxSampler { namespace gig { Line 697  namespace LinuxSampler { namespace gig {
697          return pDiskThread->GetBufferFillPercentage();          return pDiskThread->GetBufferFillPercentage();
698      }      }
699    
700        String Engine::EngineName() {
701            return "GigEngine";
702        }
703    
704        String Engine::InstrumentFileName() {
705            return InstrumentFile;
706        }
707    
708        int Engine::InstrumentIndex() {
709            return InstrumentIdx;
710        }
711    
712      String Engine::Description() {      String Engine::Description() {
713          return "Gigasampler Engine";          return "Gigasampler Engine";
714      }      }

Legend:
Removed from v.80  
changed lines
  Added in v.112

  ViewVC Help
Powered by ViewVC