Sound from Menus

5 views
Skip to first unread message

RivalAnastasia

unread,
Mar 21, 2011, 4:37:27 PM3/21/11
to kaneva-...@googlegroups.com
Hi,
    Does anyone have an example of a menu script that plays sound? I'm trying to use ClientEngine_PlaySoundTrackById and I haven't been successful.
~anastasia

Gaelin

unread,
Mar 28, 2011, 12:53:51 PM3/28/11
to kaneva-...@googlegroups.com
That API is no longer in use and only works with a few set of predefined sounds in Kaneva. The only way today to do is do a ClientEngine_SendMenuEvent to send an event to a script on the server and play the sound there.  This of course has many issues and is not recommended.  There are some new APIs coming out soon that will allow this to be better implemented.  For now I would suggest to skip adding menu sounds.

--G
Reply all
Reply to author
Forward
0 new messages