while (iSoundLen < 2048 * 2 && emulating)
while (iSoundLen < iSoundTotalLen && emulating)
static void vSoundCallback(void * _pvUserData, u8 * _puiStream, int _iLen){  if (! emulating)  {    return;  }  SDL_mutexP(pstSoundMutex);  if (! speedup && GUI()->iGetThrottle() == 0)  {    while (iSoundLen < 2048 * 2 && emulating)    {      SDL_CondWait(pstSoundCond, pstSoundMutex);    }  }  if (emulating)  {    memcpy(_puiStream, auiSoundBuffer, _iLen);  }  iSoundLen = 0;  SDL_mutexV(pstSoundMutex);}