my first sound. awwwww.
by rennie moffat · in Torque Game Builder · 04/16/2010 (9:23 am) · 6 replies
Hi there,
I have gotten audio to work on a trigger. it is a looping audioFile.wav but the sound I got was a blast of white niose, nothing like the loop I have made.
This is what I am currently doing, if anyone has any insight please let me know.
Thanks.
I know the trigger works as I got as blast of sound when triggered. But as I say it is not the file I want.
Any key insight troubleshooting for this simple step?
I have gotten audio to work on a trigger. it is a looping audioFile.wav but the sound I got was a blast of white niose, nothing like the loop I have made.
This is what I am currently doing, if anyone has any insight please let me know.
Thanks.
///audio.cs file called in game.cs
new AudioDescription(AudioNonLooping)
{
volume = 1.0;
isLooping = false;
};
new AudioProfile(bkgLoop1)
{
filename = "~/data/audio/bkgLoop1.wav";
description = "AudioLooping";
preload = true;
};///in my player behavior
%template.addBehaviorField(loop1, "", string ,"");
/// in on update
if(%templePos == %this.mTT1Pos)
{
alxPlay( %this.loop1 );
}I know the trigger works as I got as blast of sound when triggered. But as I say it is not the file I want.
Any key insight troubleshooting for this simple step?
About the author
My thanks to Garage Games and the Garage Games Community combined with owned determination I got one game up, Temple Racer and I am looking to build more interesting, fun games for the mass market of the iOS app store.
#5
I can not get my first sound to go.
I have followed all torque documents and even this thread, as I say it did work, but looped over itself causing nasty feedback. I have made a simple adjustment to cancel collisions when it is triggered by the player, thus preventing loops, however, I have no sound.
There must be an easier way to get sound going on TGB.
04/30/2010 (9:04 am)
ok, I am very perplexed. I can not get my first sound to go.
I have followed all torque documents and even this thread, as I say it did work, but looped over itself causing nasty feedback. I have made a simple adjustment to cancel collisions when it is triggered by the player, thus preventing loops, however, I have no sound.
There must be an easier way to get sound going on TGB.
#6
I have tried different things, different settings, making some things different like type, switching true and false on various things etc, but that white noise prevails. Anyone have any insight to this?
05/02/2010 (8:29 am)
I have isolated the reason I was not getting any sound. My game.cs, called the audio.cs file from an extra gamescripts folder so none the less, it is working now, however, I still get a MASSIVE white noise over my loop. Not cool. Has anyone experienced this before? I have tried different things, different settings, making some things different like type, switching true and false on various things etc, but that white noise prevails. Anyone have any insight to this?
Torque Owner rennie moffat
Renman3000