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(); |
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(); |