varying sound effects at runtime

Hey guys am current working on a game concept wherein there is an object that moves across the screen depending on the accelerometer and gravity. I want to add sound, as this object moves across the screen. The sound should be such that when the y value of the object is low the volume is high and when its y value is high the volume of the sound is low. I don't know how to do this. And this is extremely crucial to my game. Please help me....please. Or give me some clue or reference please. :)

Nothing personal, but did you even look in the API reference before asking this?

http://developer.anscamobile.com/reference/index/audiosetvolume

views:1539 update:2011/10/6 9:28:12
corona forums © 2003-2011