Alxisplaying
by Katrina Rose · in Torque Game Engine · 10/27/2004 (8:50 am) · 2 replies
Hi,
I am trying to get the below code to work, but the alxIsPlaying is not working. I have tried everything I can think of, but I can't get it to tell me if the audio is playing. This is the second way I have tried this to no avail. I am trying to play a powerpoint slideshow with audio clips for each slide. We tried animating the textures and playing the audio file together by tweaking the timing for the slide changes, but TGE is not consistant with the animation. Each time it is played the timing is different by a few seconds, and the slides will get out of sinc with the sound. Any help would be apreciated.
Marrion
I am trying to get the below code to work, but the alxIsPlaying is not working. I have tried everything I can think of, but I can't get it to tell me if the audio is playing. This is the second way I have tried this to no avail. I am trying to play a powerpoint slideshow with audio clips for each slide. We tried animating the textures and playing the audio file together by tweaking the timing for the slide changes, but TGE is not consistant with the animation. Each time it is played the timing is different by a few seconds, and the slides will get out of sinc with the sound. Any help would be apreciated.
function playEvaluateCasualty()
{
%counter = 0;
while (%counter < 8)
{
if (%counter == 0)
%skin = "base";
else
%skin = "Slide0"@%counter+1;
$slideshowObject.setSkinName(%skin);
serverPlay3D($slideAudio[%counter], $slideShowObject.getPosition());
echo("SLIDE: ",%counter);
echo(alxIsPlaying($slideAudio[%counter]));
while(alxIsPlaying($slideAudio[%counter]) == 1)
{
//pause
}
%counter++;
}
}Marrion
About the author
Katrina Rose
Default Studio Name
function playEvaluateCasualty() { %counter = 0; while (%counter < 8) { if (%counter == 0) %skin = "base"; else %skin = "Slide0"@%counter+1; $slideshowObject.setSkinName(%skin); $currentSlide = alxPlay($slideAudio[%counter]); echo("SLIDE: ",%counter); while(alxIsPlaying($currentSlide) == 1) { //pause } %counter++; } }Marrion