Game Development Community

Torque 1.7.1 AudioEmitter Not working

by Michael Shah · in General Discussion · 10/22/2009 (12:23 pm) · 6 replies

Hello Torque Community,

I am currently trying to implement 3D sound into my game. I am using MONO .ogg files already included with Torque. They appear to work correctly for the Torque 1.7.0 files.

Here is an example of my audio emitter after using the mission editor.

new SFXEmitter(cityPoolSound) {
canSaveDynamicFields = "1";
Enabled = "1";
position = "115.589 -44.5788 8";
rotation = "-0.301597 0.673912 0.674449 146.409";
scale = "1 1 1";
fileName = "scriptsAndAssets/data/sound/Fire_Mono_01.ogg";
playOnAdd = "1";
isLooping = "1";
channel = "0";
volume = "1";
is3D = "1";
referenceDistance = "1";
maxDistance = "100";
coneInsideAngle = "360";
coneOutsideAngle = "360";
coneOutsideVolume = "1";
coneVector = "0 0 1";
description = "AudioDefaultLooping3d";
loopCount = "-1";
maxLoopGap = "0";
minDistance = "20.0";
minLoopGap = "0";
outsideAmbient = "1";
type = "1";
useProfileDescription = "0";
};

#1
10/27/2009 (10:43 am)
Am I to assume there is just no audio in Torque Game Engine 1.7.1 then?
#2
01/08/2010 (1:21 pm)
Do Audio Emitters work in Torque 1.8.1? I'd rather not update to a new version in my current state of development.

Please advise.
#3
01/08/2010 (6:34 pm)
Audio emitters work in both 1.7.1 and 1.8.1.

In order to help you, we need to know if are you getting any sound at all? (IE: using the stronghold example)Some of the examples have 2d and 3d sounds in them. Have you tried them to see if you have sound from them?
Are you getting any errors in the console.log?
I've had no problem getting sounds in all the engines.

#4
01/10/2010 (7:58 am)
dont use ogg files. they dont work in 1.7.1. Use wav files instead.
#5
02/08/2010 (1:54 pm)
Thanks for the help guys. The good news is I can now get audio files to play.


The problem I am having now, is sometimes I get a "OpenAL Failed Sanity Check" error.

I have recently just downloaded and dropped the wrap_oal.dll file into my game directory, and that seems to have possibly fixed my problem above with any OpenAL errors.

Can someone please help me what is going no though? I don't know if this is a reliable fix, but has this solution worked for others?

Thanks for any help.
#6
02/08/2010 (2:06 pm)
I can now confirm the error "AL source Sanity Check Failed!" does appear regardless of including the wrap_oal.dll file.

What does this error mean?