- Home /
Play audio clip from where it left
I spent some time playing with AudioSource.time & AudioSource.timeSamples and read some posts on the forum. So I get that due to audio compression I can't rely on .time for accuracy so I need to use .timeSamples. Yet, when I printed some output of how .timeSamples work coudn't understand the idea behind them at all. I simply made a 30 sec audio loop and with first play it starts from 7526 and 2nd time 38 and every next time it loops, starts and ends with different timeSample values. Why?
What I simply want to achieve is the thing I wrote in the header and also to be able to play the sound at for example the 5th or 10th or any second without losing the accuracy from the compression for android or ios. How can I do that?
Your answer
Follow this Question
Related Questions
Check if Audio is at a specific time 0 Answers
Is there a way to wait a certain amount of time before the audio plays again 0 Answers
Using Time with OnGUI Help 2 Answers
how to play audio at a given time. 2 Answers