Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: sound when i push a button  (Read 2897 times)

0 Members and 1 Guest are viewing this topic.

gabypotter

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 39
  • Last login:February 28, 2020, 04:04:27 pm
  • I want to finish my Jukebox!!!
sound when i push a button
« 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?

Chris

  • Moderator
  • Trade Count: (+2)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4574
  • Last login:September 21, 2019, 04:59:49 pm
    • Chris's MAME Cabinet
Re: sound when i push a button
« Reply #1 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
--Chris
DOSCab/WinCab Jukebox: http://www.dwjukebox.com

gabypotter

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 39
  • Last login:February 28, 2020, 04:04:27 pm
  • I want to finish my Jukebox!!!
Re: sound when i push a button
« Reply #2 on: March 30, 2006, 03:20:15 pm »
wow!
thank you
i will try it right now!