The NEW Build Your Own Arcade Controls

Software Support => DOS/WinCab => Topic started by: gabypotter on March 25, 2006, 06:11:59 pm

Title: sound when i push a button
Post by: gabypotter on March 25, 2006, 06:11:59 pm
Hi, Chris!

i want to know if it is posibble to program
wincab to make a sound like credit sound,
when im press the numbers, is this posiblle?
Title: Re: sound when i push a button
Post by: Chris on March 29, 2006, 11:55:32 pm
You need to edit the skin file with a text editor and add the sounds you want.

Skins can contain pointers to sounds that are triggered when a button is pressed or an event occurs.  Sounds can be set to trigger either when a message or button is set or unset. To specify that a sound should be played when a message or button is unset, prefix the message or button name with a minus sign.  There is a special button derfinition called BTN_ANY that will respond to any button event.

Here is a sample sound definition set:

[Sounds]
BTN_COIN1=coin.wav
BTN_COIN2=coin.wav
BTN_ANY=btnclick.wav
MSG_START=startup.wav
-MSG_START=shutdown.wav
Title: Re: sound when i push a button
Post by: gabypotter on March 30, 2006, 03:20:15 pm
wow!
thank you
i will try it right now!