Game Development Community

iTorque Sound Streaming Question

by Alkor · in iTorque 2D · 12/10/2011 (6:35 am) · 2 replies

Is the only way to add/run sound in iT2D by using streams?
Isn't there another way?
How about volume control?

#1
12/10/2011 (9:06 am)
If you wish to play one MP3, then your only option is
$backgroundMusicHandle = startiPhoneAudioStream( "~/../data/audio/music.mp3", true );
where true for looping or false for not

To set MP3 volume control you have to modify the source. I'm lazy, so I just changed gMasterVolumeGain in PlatformiPhone > SoundEngine.mm. I expect that GG will get around to a nice handy console function one of these days. I could do it myself but, again, I'm lazy!

To play WAV, the full functionality of ALX is offered for your enjoyment!
#2
12/10/2011 (9:22 am)
I sadly have no Obj-C programming experience to implement something like that.
I saw no documentation for ALX in the official iTorque2D docs. Does this support volume control?