Game Development Community

Stop The Sound!!! ???

by Alienforce · in Torque Game Engine · 08/09/2006 (4:00 pm) · 6 replies

I am going crazy :(

Why will not " alxStop(%handle); " work ARGHHHHHH!!!!
Is this a bug ?!?

How do i stop one audiostream from playing ??

#1
08/09/2006 (4:50 pm)
Works fine for me. You sure the handle is the same as the one alxPlay (or w.e the function is) spits out?
#2
08/09/2006 (11:47 pm)
Could you please give me a short example how you setup
ex. mainmenu music and when you enter the mission it stops playing.

I have looked thrue the resources i could find including this http://tdn.garagegames.com/wiki/Audio/Music
without the typo :) but nothing works for me when it comes to stop a playing audiochannel.
#3
08/10/2006 (12:28 am)
Fixed it, Now its working...

No its not working :( I give up.................................................................
#4
08/10/2006 (3:10 am)
$someGreatSound = alxPlay(SomeEvenGreaterAudioProfile);

....

alxStop($someGreatSound);
// Or for everything...
alxStopAll();
#5
08/10/2006 (3:41 am)
Are you sure %handle is correct? That's not a global variable, so it's possible you should be using $handle ?
#6
08/10/2006 (6:48 am)
JIPPI! Thanks for the great support guys!!!!
It works!!! Thanks again :)