Quick Audio Channels Question

In my app I have the main background music playing on cannel 1 and so it's easy enough to control the volume on that channel.

However, I'm implementing separate music and sfx controls and so for the sfx I would like to control the volume of every channel except channel 1 for this.

How can I use:

audio.setVolume( 0.75, { channel=1 } ) -- set the music volume on channel 1

but state 'everything except channel 1'?

Thanks in advance

I just did something similar using the following code...

audio.setVolume( 0.5, { channel=0 } ) -- set the music volume on all channels
audio.setVolume( 0.75, { channel=1 } ) -- set the music volume on channel 1

Works like a charm thanks.

Did have that idea but I assumed that in setting the master volume for all channels and then scaling an individual channel would scale it according to the master volume.

i.e. In the above example it would reduce channel 1 to 75% of the 50% already set before - if that makes sense.

Anyway, it doesn't do that. It simply overwrites the value for that particular channel - just as I needed it too - so thank you once again.

You're welcome... :)

views:1515 update:2011/10/18 8:54:01
corona forums © 2003-2011