audio control sound balance speakers

Hello, I want a make game for blind people and is very important to control the sound balance of the speakers, for play with headphones. I have this code:

local car = audio.loadsound (“car.mp3”)
audio.play (car)
How could I control the sound-balance?

It may be possible to do that using native OS functionality with Corona Enterprise, but I don’t think there are any official APIs in Corona Standard or Pro that enable you to control the sound balance.

There are some undocumented audio APIs in Corona that may help you though: http://www.coronalabs.com/blog/2011/07/27/the-secretundocumented-audio-apis-in-corona-sdk/.  In particular, the OpenAL source and listener features may let you control the sound balance.  But keep in mind, these APIs are undocumented and not officially supported by Corona.

  • Andrew

It may be possible to do that using native OS functionality with Corona Enterprise, but I don’t think there are any official APIs in Corona Standard or Pro that enable you to control the sound balance.

There are some undocumented audio APIs in Corona that may help you though: http://www.coronalabs.com/blog/2011/07/27/the-secretundocumented-audio-apis-in-corona-sdk/.  In particular, the OpenAL source and listener features may let you control the sound balance.  But keep in mind, these APIs are undocumented and not officially supported by Corona.

  • Andrew