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 → problems with playsoundlocal()
problems with playsoundlocal()
2002-09-02, 6:30 AM #1
I want to play a sound with playsoundlocal and then deactivate it with stopsound.

But according to parsec the following isn't possible. (Some vague error it gives.)

int diggin local

diggin=PlaySoundLocal(blahblah);
StopSound(diggin, 0);

How do I set it up then?
APT 1, 2, 3/4, 5/6
TDT
DMDMD

http://veddertheshredder.com
2002-09-02, 6:42 AM #2
I dont see why you are getting an error, unless PARSEC wants a value of for the fade. Try this;


Code:
Symbols

Sound Beep
Int Channel=0    Local
End
Code
//Message...

Channel = Playsoundlocal(Beep, 1, 0, 1);

Stop;

//Message...

Stopsound(Channel, 0.1);
Stop;
End


------------------
I used to believe that we only want what we can't have. I was wrong. The truth is, the wonderful truth is, we only want what we think we can't have.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.
2002-09-02, 8:20 AM #3
hehe, it appeared that I had 2 versions of the cog, one in the cogwrighter directory and one in my project dir. So I parseced the wrong one. Sorry for the inconvienence. [http://forums.massassi.net/html/smile.gif]

*Slaps self* stupid stupid stupid...
APT 1, 2, 3/4, 5/6
TDT
DMDMD

http://veddertheshredder.com
2002-09-02, 8:22 AM #4
[http://www.plauder-smilies.de/yellows/king.gif]

------------------
I used to believe that we only want what we can't have. I was wrong. The truth is, the wonderful truth is, we only want what we think we can't have.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.

↑ Up to the top!