Bug or error?
by Prince of Troy · in Torque Game Engine · 02/13/2006 (2:30 pm) · 2 replies
I have a problem whit a function, in ....client\scrips\audioprofiles.cs:
......
new AudioDescription(AudioMusic)
{
volume = 0.9;
isLooping= true;
is3D = false;
type = $BattleMusicAudioType;
};
new AudioProfile(AudioIntroMusicProfile)
{
filename = "~/data/sound/music/earth.wav";
description = "AudioMusic";
preload = true;
};
alxPlay(AudioIntroMusicProfile);// Im playing the music, no problem here
alxStop(AudioIntroMusicProfile);//I want to stop the music, problem here, the music don't stop
//alxStopAll();//This function works fine, all music stop
......
I need to control the music, but the function alxStop(%handle) don't work, something is wrong on my code?
help will be apreciated.
......
new AudioDescription(AudioMusic)
{
volume = 0.9;
isLooping= true;
is3D = false;
type = $BattleMusicAudioType;
};
new AudioProfile(AudioIntroMusicProfile)
{
filename = "~/data/sound/music/earth.wav";
description = "AudioMusic";
preload = true;
};
alxPlay(AudioIntroMusicProfile);// Im playing the music, no problem here
alxStop(AudioIntroMusicProfile);//I want to stop the music, problem here, the music don't stop
//alxStopAll();//This function works fine, all music stop
......
I need to control the music, but the function alxStop(%handle) don't work, something is wrong on my code?
help will be apreciated.
About the author
Torque Owner Chris Labombard
Premium Preferred
Give that a try :)