/* Returns 1 if no transfer is currently pending on the given channel; otherwise, returns 0.  */
unsigned char AC97C_IsFinished(unsigned char channel)
/* Returns 1 if no transfer is currently pending on the given channel; otherwise, returns 0.  */
unsigned char AC97C_IsFinished(unsigned char channel)
{
    SANITY_CHECK(channel <= AC97C_CHANNEL_B_TRANSMIT);
	if (ac97c.transfers[channel].numSamples > 0) {
		return 0;
	}
	else {
		return 1;
	}
}