The answer: you can't do that in a for loop. Your question is focused too heavily. Step back and show more code, and this awfulness can be removed.
For example, if all you want to is frob all the audios on the page, i.e., if your code goes on to say frob(a0); frob(a1); etc., then you can do this:
var audio = document.getElementsByTagName("audio")
for (var i = 0, length = audio.length; i < length; i++) {
frob(audio[i])
}
Actually b/c JavaScript you totally can do exactly what you wrote with a for loop, assuming global scope on those vars, but I'm not going to tell you how, because it's fucking stupid.