Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Get every sound channel
Get every sound channel
2003-01-01, 12:37 PM #1
Is there any way to get every sound channel, so i could make the same thing happen to the whole level's sounds that are playing? An array or anything?

------------------
Cave_Demon, an ***hole since '86
Last edited by mb; today at 10:55 AM.
2003-01-01, 12:46 PM #2
Yea, have it set up manually. [http://forums.massassi.net/html/tongue.gif]

There's no cog function GetSoundChannel() or GetNumSoundChannels()
-Hell Raiser
2003-01-01, 1:08 PM #3
the channel is defined
channel = PlaySound();

------------------
Cave_Demon, an ***hole since '86
Last edited by mb; today at 10:55 AM.
2003-01-01, 1:32 PM #4
Let me guess, you want to apply "Changesoundpitch" to every running sound. [http://forums.massassi.net/html/tongue.gif] Ive thought about it before, and I dont see a way to do it, short of modifiying every cog in the game...
And when the moment is right, I'm gonna fly a kite.
2003-01-02, 2:49 AM #5
Quote:
<font face="Verdana, Arial" size="2">Originally posted by GBK:
Let me guess, you want to apply "Changesoundpitch" to every running sound. [http://forums.massassi.net/html/tongue.gif] Ive thought about it before, and I dont see a way to do it, short of modifiying every cog in the game...</font>

That too... I also wanted to stop every running sound



------------------
Cave_Demon, an ***hole since '86
Last edited by mb; today at 10:55 AM.
2003-01-02, 12:02 PM #6
Well, correct me if i'm wrong, but if you die while swinging the saber, doesn't the saber sound stop? Maby you could take and exerpt out of the cog that controls that. You could modify that to stop all sounds from playing.

Oh, wait. i just figured out that what you want is to find the sounds playing. Im so dumb.

Hmmm. Ive been stricken by another (stupid) idea. You could program the cog to stop all of the individual sound from playing. Like stop doorsound(orwhatever).whatever and stormtroopersound.whatever and so on, even if they arent playing. But that might cause errors because some of the sound that are told to stop would not be playing.


------------------
LEET OWNAGE
2003-01-02, 12:15 PM #7
Eureka!

Code:
For(I=0;I<=100000;I=I+1) Stopsound(I, 0.01);


It works, I tested it. [http://forums.massassi.net/html/tongue.gif]
And when the moment is right, I'm gonna fly a kite.
2003-01-02, 12:37 PM #8
Code:
For(I=0;I<10000;I=I+1) Changesoundpitch(I, 0.5, 0.00001);


That works too, but it will only stop the sounds playing when it is run. Youll have to put it a VERY FAST pulse for it to have an effect on slowmo.
And when the moment is right, I'm gonna fly a kite.
2003-01-02, 3:05 PM #9
lmfao, thats so simple it's brilliant! [http://forums.massassi.net/html/redface.gif]
-Hell Raiser
2003-01-02, 11:31 PM #10
Quote:
<font face="Verdana, Arial" size="2">Originally posted by CaveDemon:
An array or anything?

</font>


[http://forums.massassi.net/html/biggrin.gif]


------------------
Cave_Demon, an ***hole since '86
Last edited by mb; today at 10:55 AM.

↑ Up to the top!