Looping an AudioClip var...

I have a declared variable(soundvar), an AudioClip, that I need to loop. It is not attached to a audio source. Can I make a variable loop independent of an audio source?

I was thinking along the syntax of soundvar.loop = true?

My javascript is not very strong, thank you for humoring my inquiry.

You can play sound without attaching it to the source, but you lose control of it, and if I recall correctly, you cannot loop it (without writing extra logic to tell it to play again, which will run into a whole new set of problems)

The command for playing once is PlayOneShot.

What you could do, is have a prefab of an AudioSource and instantiate and attach the clip to it in code.