/[svn]/linuxsampler/trunk/src/engines/EngineBase.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/engines/EngineBase.h

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

revision 3282 by schoenebeck, Sun May 28 22:22:56 2017 UTC revision 3283 by schoenebeck, Wed Jun 21 20:59:06 2017 UTC
# Line 379  namespace LinuxSampler { Line 379  namespace LinuxSampler {
379                  }                  }
380                  pVoicePool->clear();                  pVoicePool->clear();
381    
382                  // (re)create event generator                  // update event generator
383                  if (pEventGenerator) delete pEventGenerator;                  pEventGenerator->SetSampleRate(pAudioOut->SampleRate());
                 pEventGenerator = new EventGenerator(pAudioOut->SampleRate());  
384    
385                  dmsg(1,("Starting disk thread..."));                  dmsg(1,("Starting disk thread..."));
386                  pDiskThread->StartThread();                  pDiskThread->StartThread();
# Line 1296  namespace LinuxSampler { Line 1295  namespace LinuxSampler {
1295                              RTList<ScriptEvent>::Iterator itScriptEvent =                              RTList<ScriptEvent>::Iterator itScriptEvent =
1296                                  pEngineChannel->pScript->pEvents->allocAppend();                                  pEngineChannel->pScript->pEvents->allocAppend();
1297    
1298                                itScriptEvent->cause = pEventGenerator->CreateEvent(0);
1299                                itScriptEvent->cause.Type = (Event::type_t) -1; // some invalid type to avoid random event processing
1300                              itScriptEvent->cause.pEngineChannel = pEngineChannel;                              itScriptEvent->cause.pEngineChannel = pEngineChannel;
1301                                itScriptEvent->cause.pMidiInputPort = pEngineChannel->GetMidiInputPort();
1302                              itScriptEvent->handlers[0] = pEngineChannel->pScript->handlerInit;                              itScriptEvent->handlers[0] = pEngineChannel->pScript->handlerInit;
1303                              itScriptEvent->handlers[1] = NULL;                              itScriptEvent->handlers[1] = NULL;
1304                              itScriptEvent->currentHandler = 0;                              itScriptEvent->currentHandler = 0;

Legend:
Removed from v.3282  
changed lines
  Added in v.3283

  ViewVC Help
Powered by ViewVC