I have a handle to a sound defined like so:
local sfx\_warble = audio.loadSound( "warble.wav" )
I want to be able to play the sound from a function by passing it a string of the handle name. Something like:
function playSoundFX(sound)
local sfxChannel = audio.play(sound)
end
and then calling it with a line like
playSoundFX("sfx\_warble")
The above doesn’t work since the string is not the sound. Is there some way to, I don’t know, cast the string as a handle? [import]uid: 9422 topic_id: 8248 reply_id: 308248[/import]