Change: set up debug testing to read PCM from a file and playback.  This seems to work okay for anything other than the sample output of the SPC, so the audio setup is most likely fine.  The problem has to be with the synchronization of the samples to the playhead, or the sample generation itself.