Game Development Community

Adjusting audio volume in iTGB on iPhone?

by Dave Calabrese · in iTorque 2D · 10/16/2009 (5:16 pm) · 1 replies

Doing some testing and checking through code, and it looks like the audio volume should be getting changed, but it's not changing at all. I'm suspecting that part of the iPhone audio API has not been wired into iTGB, but lemme hear from all of you, as I suspect someone else has probably already looked into this.

I've got my AudioDescription. It has a sound volume of "0.5", which should be half volume if I'm reading the engine source correctly. So I set it to 1.0, and the volume doesn't change at all. I set it to 0.0, at the volume doesn't change at all.

Thoughts? Ideas? Incantations?

#1
10/16/2009 (7:14 pm)
Firstly, those audio descriptions are neat but mostly for balancing subtle sound differences. Normally , sound is put into channels, like "ambient sounds" channel, sound FX channel, music channel, etc. That way, each channel, has its own volume and can be controlled via

alxSetChannelVolume() in scripts, and in code - there is a audioFunctions.cc that has all the audio related functions (they normally all start with alx*)