Game Development Community

OpenSnd crash

by Blackcode · in Torque Game Engine · 05/29/2007 (6:53 am) · 5 replies

Alot of crash code in this book !! however when I tried the following code the engine crash

%whichdoor.openSnd = %whichdoor.playAudio(0, doorStartOpenSwingSnd);

//sound proifle
datablock AudioProfile(doorStartOpenSwingSnd)
{
fileName = "~/data/sound/door1_move.wav";
description = AudioOpen3d;
preload = true;
};


any idea ?

#1
05/29/2007 (8:15 am)
I don't have that book but what does your whichdoor.playAudio function look like and your audio description. Might be a problem with one of them. Also you might wanna post what the log says when it crashes, using trace(true); in the console.
#2
05/29/2007 (11:46 am)
I dont made this function I was assuming it is a built in function in torque, however if I want to use 3D audio what is the right way to do it ?

I will post trace log later

thanks
#3
05/29/2007 (12:47 pm)
I'll post some links, I would post code but this is a public forum.

tdn.garagegames.com/wiki/Audio/Getting_Started
www.garagegames.com/mg/forums/result.thread.php?qt=52978

The first one is tdn, and the second is an old thread where I describe how to play audio on the game start.
#4
05/30/2007 (8:34 am)
I still cant get it to work , I dont want to use mono sound I need 3D sound here is the link to my topic in private forum

http://www.garagegames.com/mg/forums/result.thread.php?qt=62797

thanks
#5
05/30/2007 (8:40 am)
A 3D sound requires a mono sound file.