Using AudioSource.Time

I’m clueless as to how to achieve this:

Basically I’ve a 4min 10 sec long audio clip…however I want to play it from 34 seconds onwards…

So basically from 0:34 is my start-point and 4:10 is my end point.

Some suggested that AudioSource.Time is what I need…but the doc speaks no word as to how to achieve this…please give the syntax or some ‘raw code’ to solve this issue…thanks…

An help…?

What do you have currently? You should be able to go to 0:34 by just doing this:

audioSource.time=34;

Thanks…and how do I set the end-time? Suppose say I want to pause at 4min - i.e 240 sec…how to specify that?

Something like

if(audioSource.time>=240)
    audioSource.Stop();
1 Like