// handle the output
if (nOutputMode == UNMAC_DECODER_OUTPUT_WAV)
spioOutput.write(spTempBuffer, 0, nBlocksDecoded * blockAlign);
else if (nOutputMode == UNMAC_DECODER_OUTPUT_APE)
spAPECompress.AddData(spTempBuffer, nBlocksDecoded * spAPEDecompress.getApeInfoBlockAlign());
// update amount remaining
nBlocksLeft -= nBlocksDecoded;
// update progress and kill flag