I've personally settled on using 16 bit 44.1 mono files in my work with roAudioResource as I get the best results with those, there were some bugs with various other lower rates and i'm not sure if those were ever resolved.
Your .wav files need to be small, generally 250k or less work for me. (the limitation is officially 5 seconds in length).
One thing you can do if sounds are being cut off is to alternate channels when playing audio files - there are two channels available on most non-legacy players. Look in the
beep example in your SDK for these (currently) not-really-documented features, here they are in a nutshell:
sound1=createobject("roAudioResource","pkg:/sounds/boom.wav")
sound2=createobject("roAudioResource","pkg:/sounds/laser.wav")
numchannels=sound1.maxSimulStreams()
volume=100
if numchannels < 2 then
print "Two channels not supported"
stop
else
print numchannels;" are supported"
end if
channel=0
sound1.trigger(volume,channel)
channel=1
sound2.trigger(volume,channel)
Note that you are still likely to experience retriggering glitches even if you alternate channels, but this should improve things significantly.
- Joel