Hi Bill. I managed to install Unity on a PC here and did some tests. I think the distortion is being caused by the fact that Csound seems to set
nchnls to 1 as the default setting. This was leading to garbage in the right speaker. I think the Csound audio interface wrappers are clever enough to discard this, but mine are not The simple fix here is to set
nchnls = 2 in your orc header.
I also had a look into the score issue, but couldn't find anything wrong with it. It must have something to do with the t statement in the score? When I create a simple score without any t statement it seems to work fine. For example, the following .csd plays back 4 hits of your sound file every second. The timing seems fine to me.
PlayAudio.csd (464 Bytes)
You'll see this .csd accesses the sound file from a directory in your Assets folder. You can then access the audio doing something like this:
SAudio chnget "AudioPath"
SFilename sprintf "%s/glock1401.wav", SAudio
I'm not sure where you were putting your audio files, but putting them in a directory like this lets you quickly play them back using Unity's audio file player. This can be handy for quickly auditioning a sound file.
Let me know how you get on.