I am trying to get the following code working:
local ch, src = audio.play(playbackSoundHandle, { onComplete=onCompleteSound })
al.Listener( al.POSITION, xl, yl, zl )
al.Source( src, al.POSITION, x, y, z )
I’m assuming it works on Apple devices, as I’ve seen ALexplorer (http://developer.anscamobile.com/code/alexplorer) and I haven’t heard anyone say that it doesn’t work for them. However, the position setting is not working for me at all on the simulator on Windows or on Android device builds. Pitch works fine in ALexplorer and in my own code.
I have made sure that my audio files are all mono, and I even explicitly set al.ROLLOFF_FACTOR to make sure it wasn’t set to 0 somehow, but that made no difference.
Here are my system details, if it might make a difference:
Windows: Vista SP1
Android: HTC Desire Android 2.2
Corona: build 591 and 731 [import]uid: 112085 topic_id: 23669 reply_id: 323669[/import]
I made my audio looping, set the reference distance to 100, and set my source position x value in the range of -400 to +400.