Game Development Community

Sound volume and channels

by Vern Jensen · in Torque Game Builder · 06/20/2006 (6:25 pm) · 4 replies

A couple of questions:

1) When I do alxPlay(mySound), the sound's volume is considerably lower than when I play the WAV file. This is despite the fact that my AudioDescription has volume = 1.0.

2) The TGB Reference does not mention any controls for setting system volume. Is there a way to do this?

3) The TGB Reference lists alxGetChannelVolume and alxSetChannelVolume, but does not seem to provide any way of specifying which channel to play a sound in. It feels like parts of the documentation here is missing... Is that the case?

-Vern

#1
06/21/2006 (12:10 am)
1. I think that's a quirk of OpenAL. I've noticed that with some my fx as well.

2. I don't think so, and you probably don't want to mess with it anyway. Any game that changes any of my actual system properties (such as resolution, desktop icon position and sound) is going to get dumped. I set how my system looks and sounds, not a game.

3. You define the channels when you create the audio datablocks. Have a search around TDN as I know I've seen stuff about it on there.
#2
06/23/2006 (1:21 pm)
We've just started using T2D here and we also have had the problem of sound effects playing at very low volume on some machines. We'll have to look into this to see where the problem is.

-Vance
#3
06/23/2006 (2:07 pm)
I have the same questions as Vern about the channels, how do we determine which sounds are in which channels? The connection is not spelled out in any of the documents that ship with TGB. Please clarify.
#4
06/23/2006 (5:17 pm)
When you define a sound, you use an AudioProfile. Inside that is a 'description' field, intended to reference an AudioDescription definition. Inside these AudioDescriptions include a 'type' field which equals the channel.

So you'd use AudioDescriptions to define each unique audio output (volume, isStreaming, is3DSound, isLooping, and channel number) and use AudioProfiles to define the actual sound effect/music, referencing an audio output (AudioDescription).