351 |
|
|
352 |
// no need to continue if sample is silent |
// no need to continue if sample is silent |
353 |
if (!pDimRgn->pSample || !pDimRgn->pSample->SamplesTotal) return Pool<Voice>::Iterator(); |
if (!pDimRgn->pSample || !pDimRgn->pSample->SamplesTotal) return Pool<Voice>::Iterator(); |
354 |
|
|
355 |
|
dmsg(2,("sample -> \"%s\"\n", pDimRgn->pSample->pInfo->Name.c_str())); |
356 |
|
|
357 |
// allocate a new voice for the key |
// allocate a new voice for the key |
358 |
Pool<Voice>::Iterator itNewVoice = GetVoicePool()->allocAppend(); |
Pool<Voice>::Iterator itNewVoice = GetVoicePool()->allocAppend(); |