Set start and end points in an audio clip?

I’m trying to make an engine idle sound that isn’t repetitive. I’d like to identify several sub-loops in my audio clip and play them randomly.

How can I tell unity where (in milliseconds or samples) to start/end playback in an audio clip?

Could you randomise the pitch with a lerp to smooth it a little?

Just a thought. I randomised the step sound in an fps shooter once and it sounded great.

AaronC

It’s not sample-accurate though, so I wouldn’t rely on this for loops. I’d do the editing in another application.

Ah, cool thanks. I thought that was read-only. I’ll give it a try and see if I can get it to loop without popping.

I did try applying modulation to the pitch…a sine wave with a different period than the sample, which helped a lot.