Game Development Community

Theora audio channel

by Vladan Markovic · in Torque Game Builder · 12/08/2011 (11:20 am) · 2 replies

Hi,

By using function:
alxSetChannelVolume(1,%volume);

I noticed that Theora video playback have audio on channel 1,
Can i assume that audio of video playback is always on channel 1 and set function in my game code like:
alxSetChannelVolume(1,%volume); to change cut-scene audio volume.

Or this channel can change value depending on how much other channles are used or some other things.

Thank you.


#1
12/08/2011 (11:53 pm)
The channel for theora audio defaults to 1, but there are (unused) ways to set different channel within engine. So it will always be 1, unless you or someone else change how TheoraTexture does its thing.

You may want to define something like '$Theora::audioChannel = 1' and use that variable instead of '1' through your scripts, so you could easily change that value when you need.
#2
12/09/2011 (8:52 am)
Ok, tnx for helping me out.