Game Development Community

AlxPlay works but playAudio doesn't

by Ahmed@ · in Torque Game Engine · 12/06/2005 (11:38 am) · 2 replies

New AudioDescription(NewSound)
{
volume = 1.0;
isLooping= true;

is3D = true;
ReferenceDistance= 5.0;
MaxDistance= 30.0;
type = $SimAudioType;
};
new AudioProfile(NewSoundStart)
{
filename = "~/data/sound/police.wav";
description = "NewSound";
preload = true;
};

when I call alxPlay(NewSoundStart, Position) works fine. But when I call %obj.playAudio(0,NewSoundStart) through the console it doesn't wok. I tried also calling a funciton on the server which call %obj.playAudio but that didn't work either. ??
Thanks

#1
12/06/2005 (11:58 am)
There is some good information buried in this post, I have it bookmarked.

www.garagegames.com/mg/forums/result.thread.php?qt=3169
#2
12/06/2005 (1:53 pm)
@Bruce thanks very much I managed to sort it out using Rick's suggestion in the link you provided. Changed the "New" to "Datablock" and that sorted it out.

Thanks