2173 |
if (!pSamplerChannel) throw Exception("Invalid sampler channel number " + ToString(uiSamplerChannel)); |
if (!pSamplerChannel) throw Exception("Invalid sampler channel number " + ToString(uiSamplerChannel)); |
2174 |
EngineChannel* pEngineChannel = pSamplerChannel->GetEngineChannel(); |
EngineChannel* pEngineChannel = pSamplerChannel->GetEngineChannel(); |
2175 |
if (!pEngineChannel) throw Exception("No engine type assigned to sampler channel"); |
if (!pEngineChannel) throw Exception("No engine type assigned to sampler channel"); |
2176 |
|
if (pEngineChannel->InstrumentStatus() < 0) throw Exception("No instrument loaded to sampler channel"); |
2177 |
Engine* pEngine = pEngineChannel->GetEngine(); |
Engine* pEngine = pEngineChannel->GetEngine(); |
2178 |
InstrumentManager* pInstrumentManager = pEngine->GetInstrumentManager(); |
InstrumentManager* pInstrumentManager = pEngine->GetInstrumentManager(); |
2179 |
if (!pInstrumentManager) throw Exception("Engine does not provide an instrument manager"); |
if (!pInstrumentManager) throw Exception("Engine does not provide an instrument manager"); |