- for(ns=0;ns<NSSIZE*2 && XAPlay!=XAFeed;)
- {
- XALastVal=*XAPlay++;
- if(XAPlay==XAEnd) XAPlay=XAStart;
-#ifdef XA_HACK
- SSumLR[ns++]+=(((short)(XALastVal&0xffff)) * iLeftXAVol)/32768;
- SSumLR[ns++]+=(((short)((XALastVal>>16)&0xffff)) * iRightXAVol)/32768;
-#else
- SSumLR[ns++]+=(((short)(XALastVal&0xffff)) * iLeftXAVol)/32767;
- SSumLR[ns++]+=(((short)((XALastVal>>16)&0xffff)) * iRightXAVol)/32767;
-#endif
- }
-
- if(XAPlay==XAFeed && XARepeat)
- {