Why is audio.PlayScheduled playing immediately

var introTime = 15.0;
Debug.Log( introTime + " // " + audio.isPlaying ); // Prints “15.0 // false”
audio.PlayScheduled(introTime);
Debug.Log( introTime + " // " + audio.isPlaying ); // Prints “15.0 // true”

I’m trying to use PlayScheduled but it doesn’t seem to be working. Shouldn’t PlayScheduled not begin playing the audio for 15 seconds? Instead it begins playing immediately.

if you added a component audio source look at the inspector, the awake setting is checked there. just unchecked it.

It’s because PlayScheduled uses AudioSettings.dspTime, which is a constant unique time. To fix it I used: audio.PlayScheduled( AudioSettings.dspTime + introTime );