Game Development Community

Audio Documentation?

by Joe Kauffman · in Torque Game Builder · 11/07/2006 (10:37 am) · 6 replies

Hey,

i've looked through the docs and am having trouble finding info related to audio.
there is nothing in the TGB Reference.pdf that mentions audio...

i found this:
tdn.garagegames.com/wiki/Audio/Getting_Started

it mentions VMPlayer, but that's only for TGE...
is there anthing else?

is there a sound/audio object?
are there standard methods, etc?

can i play/pause/setVolume/setPan/fadeIn/fadeOut/etc, etc...?

i don't want to do anything out of the ordinary,
just normal background music and sound FX.

any help would be appreciated.

thanks!
joe

#2
11/09/2006 (12:21 am)
This is clearly not enough...

What about audio emitter ? I would like to make sounds localized in the game space in 2d.
OpenAl surely can do that. But the documentation tell nothing about it.
#3
11/12/2006 (5:06 am)
Tagging this post, looking for the same 'localized audio' possibilities and more audio functions like the VMPlayer except for TGB.

Maybe an employee will chime in... ?
#4
11/15/2006 (11:27 am)
Have you tried looking at the Audio.pdf that comes with the documentation with the engine?

Also the TGB Reference.pdf does in fact cover Audio, look under Console Functions -> Audio.
#5
11/15/2006 (12:03 pm)
I did. The tgb reference does explain the audio functions. ALthough none of them can be used for fading or panning. The audio.pdf is very basic and doesn't cover any of the more interetsing features of Audio Descriptions. Such as -

coneInsideAngle Sweep angle of inner cone.
coneOutsideAngle Sweep angle of Outside cone.
coneOutsideVolume Maximum gain in Zone C (see above).
coneVector Audio emitter's eye (pointing) vector.
environmentLevel Amount by which the audioEnvironment datablock used with this datablock will affect sound.
is3D Is this a 2D or a 3D sound?
isLooping If true, sound loops, othewise sound plays only once.
isStreaming If true, sound source is streaming, otherwise sound is from file.
loopCount Number of times to loop this sound

-1 - Loop infinitely.
0 - Loop once and only once.
1 - Loop once, possibly twice.
(N > 1) - Loop N times.

maxDistance Outer boundary for 3D sound sphere. Sound turns on-off here at this distance from 3D emitter.
maxLoopGap Maximum delay between subsequent loop.
minLoopGap Minimum delay between subsequent loop.
ReferenceDistance Distance at which sound turns on to 100% of current maximum gain.
type Audio type. There can be multiple numeric audio types, each with its own globally controlled max gain.
volume Maximum gain for this source.

These are the settings im particularly interetsd in. Especially which ones can be used in TGB. Maybe the TGE folks have the documentation for it?
#6
12/28/2006 (9:40 am)
I've been trying to find information, myself. I checked TDN but not the bundled documentation that came with TGB. I'll look there, but just in case I don't find anything - is there a way to attach a callback to the end of a sound, similar to what we do with onAnimationEnd()? Thanks!

Edit: Okay, I've checked the one audio doc I could find bundled with TGB - the Audio Tutorial. It's very basic and only covers what I already knew. Does anyone know anything about audio callbacks?

Thanks again!