if(!speedup) {
if(!speedup && !throttle) {
void soundCallback(void *,u8 *stream,int len){  if(!emulating)    return;  SDL_mutexP(mutex);  //  printf("Locked mutex\n");  if(!speedup) {    while(sdlSoundLen < 2048*2) {      if(emulating)        SDL_CondWait(cond, mutex);      else         break;    }  }  if(emulating) {    //  printf("Copying data\n");    memcpy(stream, sdlBuffer, len);  }  sdlSoundLen = 0;  if(mutex)    SDL_mutexV(mutex);}