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

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

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

revision 2290 by schoenebeck, Mon Sep 19 21:48:45 2011 UTC revision 2291 by capela, Thu Nov 24 17:00:29 2011 UTC
# Line 604  namespace LinuxSampler { namespace gig { Line 604  namespace LinuxSampler { namespace gig {
604    
605          // (try to resolve the audio device context)          // (try to resolve the audio device context)
606          EngineChannel* pEngineChannel = dynamic_cast<EngineChannel*>(pConsumer);          EngineChannel* pEngineChannel = dynamic_cast<EngineChannel*>(pConsumer);
607          AudioOutputDevice* pDevice =          Engine* pEngine = dynamic_cast<Engine*>(pEngineChannel->GetEngine());
608              (pEngineChannel) ? dynamic_cast<Engine*>(pEngineChannel->GetEngine())->pAudioOutputDevice : NULL;          AudioOutputDevice* pDevice = (pEngine) ? pEngine->pAudioOutputDevice : NULL;
           
609          // and we save this to check if we need to reallocate for a engine with higher value of 'MaxSamplesPerSecond'          // and we save this to check if we need to reallocate for a engine with higher value of 'MaxSamplesPerSecond'
610          pEntry->MaxSamplesPerCycle =          pEntry->MaxSamplesPerCycle =
611              (pDevice) ? pDevice->MaxSamplesPerCycle() : DefaultMaxSamplesPerCycle();              (pDevice) ? pDevice->MaxSamplesPerCycle() : DefaultMaxSamplesPerCycle();
# Line 628  namespace LinuxSampler { namespace gig { Line 627  namespace LinuxSampler { namespace gig {
627                    
628          // (try to resolve the audio device context)          // (try to resolve the audio device context)
629          EngineChannel* pEngineChannel = dynamic_cast<EngineChannel*>(pConsumer);          EngineChannel* pEngineChannel = dynamic_cast<EngineChannel*>(pConsumer);
630          AudioOutputDevice* pDevice =          Engine* pEngine = dynamic_cast<Engine*>(pEngineChannel->GetEngine());
631              (pEngineChannel) ? dynamic_cast<Engine*>(pEngineChannel->GetEngine())->pAudioOutputDevice : NULL;          AudioOutputDevice* pDevice = (pEngine) ? pEngine->pAudioOutputDevice : NULL;
632                    
633          uint maxSamplesPerCycle =          uint maxSamplesPerCycle =
634              (pDevice) ? pDevice->MaxSamplesPerCycle() : DefaultMaxSamplesPerCycle();              (pDevice) ? pDevice->MaxSamplesPerCycle() : DefaultMaxSamplesPerCycle();

Legend:
Removed from v.2290  
changed lines
  Added in v.2291

  ViewVC Help
Powered by ViewVC